【发布时间】:2019-08-29 05:27:24
【问题描述】:
为什么以下代码会生成不同的图? xyplot() 和 dotplot() 有什么区别?
library(lme4)
library(lattice)
str(Dyestuff)
xyplot(reorder(Batch,Yield)~Yield,Dyestuff,ylab = "Batch", jitter.y = TRUE, pch = 21, aspect = 0.32,
xlab = "Yield of dyestuff (grams of standard color)",
type = c("p", "a","g"))
dotplot(reorder(Batch, Yield) ~ Yield, Dyestuff,
ylab = "Batch", jitter.y = TRUE, pch = 21, aspect = 0.32,
xlab = "Yield of dyestuff (grams of standard color)",
type = c("p", "a"))
【问题讨论】: