尝试在线参考手册中的ggplot2示例,尤其是
this page
除了第二个例子中的第一个之外,我无法生成所有的图。
> d + stat_density2d(geom="tile", aes(fill = ..density..), contour = FALSE)
Error in `[<-.data.frame`(`*tmp*`, var, value = list(`NA` = NULL)) :
missing values are not allowed in subscripted assignments of data frames
In addition: Warning message:
Removed 34912 rows containing missing values (stat_density2d).
我有。2.10.1和ggplot2版本。0.8.6
怎么了?