代码之家  ›  专栏  ›  技术社区  ›  Yorgos

为什么在运行联机ggplot2参考手册中的一些示例时出错?

  •  1
  • Yorgos  · 技术社区  · 16 年前

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

    怎么了?

    1 回复  |  直到 16 年前
        1
  •  4
  •   xiechao    16 年前
    推荐文章