求问怎么解决,谢谢大神了。。。刚刚开始学习r软件,所以不是很会啊。。。程序如下。。
> n <- seq(5, 45, 5)
> x <- rnorm(sum(n))
> y <- factor(rep(n, n), labels=paste("n =", n))
> densityplot(~ x | y,
+ panel = function(x, ...) {
+ panel.densityplot(x, col="DarkOliveGreen", ...)
+ panel.mathdensity(dmath=dnorm,
+ args=list(mean=mean(x), sd=sd(x)),
+ col="darkblue")
+ })
错误: 没有"densityplot"这个函数
好像要下载什么什么包的,不懂啊,也没搜到哪儿有。。。。。