R語言
ethanol
位於 lattice
包(package)。 說明
乙醇燃料在 single-cylinder 發動機中燃燒。對於發動機壓縮和當量比的各種設置,記錄氮氧化物的排放量。
用法
ethanol
格式
包含以下 3 個變量的 88 個觀測值的 DataFrame 。
- 氮氧化物
-
氮氧化物(NO 和 NO2)濃度,單位為微克/J。
- C
-
發動機的壓縮比。
- E
-
等效ratio-a 衡量空氣和乙醇燃料混合物的豐富度。
例子
## Constructing panel functions on the fly
EE <- equal.count(ethanol$E, number=9, overlap=1/4)
xyplot(NOx ~ C | EE, data = ethanol,
prepanel = function(x, y) prepanel.loess(x, y, span = 1),
xlab = "Compression ratio", ylab = "NOx (micrograms/J)",
panel = function(x, y) {
panel.grid(h=-1, v= 2)
panel.xyplot(x, y, grid = FALSE)
panel.loess(x, y, span = 1)
},
aspect = "xy")
# Wireframe loess surface fit. See Figure 4.61 from Cleveland.
require(stats)
with(ethanol, {
eth.lo <- loess(NOx ~ C * E, span = 1/3, parametric = "C",
drop.square = "C", family="symmetric")
eth.marginal <- list(C = seq(min(C), max(C), length.out = 25),
E = seq(min(E), max(E), length.out = 25))
eth.grid <- expand.grid(eth.marginal)
eth.fit <- predict(eth.lo, eth.grid)
wireframe(eth.fit ~ eth.grid$C * eth.grid$E,
shade=TRUE,
screen = list(z = 40, x = -60, y=0),
distance = .1,
xlab = "C", ylab = "E", zlab = "NOx")
})
作者
Documentation contributed by Kevin Wright.
來源
Brinkman, N.D. (1981) 乙醇燃料 — Single-Cylinder 發動機效率和廢氣排放研究。 SAE 交易,90,1410-1424。
參考
Cleveland, William S. (1993) Visualizing Data. Hobart Press, Summit, New Jersey.
相關用法
- R environmental 紐約市的大氣環境條件
- 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大神的英文原創作品 Engine exhaust fumes from burning ethanol。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。