尝试在线参考手册中的 ggplot2 示例,特别是在此页面中,除了第二个示例的第一个图之外,我没有生成所有图。
> 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).
我有 R 版本。2.10.1 和 ggplot2 版本。0.8.6
怎么了?