1

尝试在线参考手册中的 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

怎么了?

4

1 回答 1

4

这似乎是这里报告的错误: http ://groups.google.com/group/ggplot2/browse_thread/thread/6a7929d2b122efb2

于 2010-02-26T01:05:40.370 回答