回复 第1楼 的 cloud wei:
请教楼主,刚安装了beanplot包,对于下面范例中的一段,始终不解,盼解疑:
#ToothGrowth是beanplot自带的数据,下面是对该数据根据dose剂量不同进行比较:
beanplot(len ~ reorder(supp, len, mean) * dose, ToothGrowth,
side = "b", col = list("yellow", "orange"), border = c("yellow2",
"darkorange"), main = "Guinea Pigs' Tooth Growth",
xlab = "Vitamin C dose mg", ylab = "tooth length", ylim = c(-1,
40), yaxs = "i")
legend("bottomright", bty="n",c("Ascorbic acid", "Orange juice"),
fill = c("yellow", "orange"))
[s:16]问题: "reorder(supp, len, mean) * dose"这段是什么意思?