当我从在线ggplot2参考手册中运行一些示例时,为什么会出现错误?

时间:2010-02-25 11:16:51

标签: r ggplot2

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

我有R ver。 2.10.1和ggplot2 ver。 0.8.6

有什么问题?

1 个答案:

答案 0 :(得分:4)

相关问题