R語言
environmental
位於 lattice
包(package)。 說明
1973 年 5 月至 9 月紐約市臭氧濃度、風速、溫度和太陽輻射的每日測量結果。
用法
environmental
格式
包含以下 4 個變量的 111 個觀測值的 DataFrame 。
- 臭氧
-
平均臭氧濃度(每小時測量)為十億分之幾。
- 輻射
-
蘭利的太陽輻射(從 08:00 到 12:00)。
- 溫度
-
每日最高溫度(華氏度)。
- 風
-
平均風速(07:00 和 10:00),以英裏/小時為單位。
例子
# Scatter plot matrix with loess lines
splom(~environmental,
panel=function(x,y){
panel.xyplot(x,y)
panel.loess(x,y)
}
)
# Conditioned plot similar to figure 5.3 from Cleveland
attach(environmental)
Temperature <- equal.count(temperature, 4, 1/2)
Wind <- equal.count(wind, 4, 1/2)
xyplot((ozone^(1/3)) ~ radiation | Temperature * Wind,
aspect=1,
prepanel = function(x, y)
prepanel.loess(x, y, span = 1),
panel = function(x, y){
panel.grid(h = 2, v = 2)
panel.xyplot(x, y, cex = .5)
panel.loess(x, y, span = 1)
},
xlab = "Solar radiation (langleys)",
ylab = "Ozone (cube root ppb)")
detach()
# Similar display using the coplot function
with(environmental,{
coplot((ozone^.33) ~ radiation | temperature * wind,
number=c(4,4),
panel = function(x, y, ...) panel.smooth(x, y, span = .8, ...),
xlab="Solar radiation (langleys)",
ylab="Ozone (cube root ppb)")
})
作者
Documentation contributed by Kevin Wright.
來源
Bruntz, S. M., W. S. Cleveland, B. Kleiner, 和 J. L. Warner。 (1974)。環境臭氧對太陽輻射、風、溫度和混合高度的依賴性。大氣擴散和空氣汙染研討會,第 125-128 頁。美國氣象學會,波士頓。
參考
Cleveland, William S. (1993) Visualizing Data. Hobart Press, Summit, New Jersey.
相關用法
- R ethanol 燃燒乙醇時發動機排出的廢氣
- R panel.xyplot xyplot 的默認麵板函數
- R xyplot.ts 時間序列繪圖方法
- R panel.bwplot bwplot 的默認麵板函數
- R panel.loess 添加黃土平滑的麵板函數
- R lset 修改網格設置的接口 - 已失效
- R panel.axis 繪圖軸刻度和標簽的麵板函數
- R Rows 從列表中提取行
- R panel.number 在繪圖期間訪問輔助信息
- R trellis.par.get 網格顯示的圖形參數
- R update.trellis 檢索和更新網格對象
- R barley 明尼蘇達州大麥試驗的產量數據
- R panel.functions 有用的麵板函數組件
- R prepanel.functions Lattice 有用的 Prepanel 函數
- R xyplot 常見的二變量網格圖
- R simpleTheme 生成簡單主題的函數
- R panel.parallel 並行的默認麵板函數
- R print.trellis 繪製和總結網格對象
- R panel.cloud 雲默認麵板函數
- R packet.panel.default 將數據包與麵板關聯
- R levelplot 水平圖和等高線圖
- R trellis.device 初始化網格顯示
- R cloud 3d 散點圖和線框曲麵圖
- R tmd Tukey 均差圖
- R panel.pairs splom 的默認超級麵板函數
注:本文由純淨天空篩選整理自R-devel大神的英文原創作品 Atmospheric environmental conditions in New York City。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。