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

R 为什么在运行联机ggplot2参考手册中的一些示例时会出现错误?,r,ggplot2,R,Ggplot2,尝试在线参考手册中的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 subscrip

尝试在线参考手册中的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).
>d+stat\u density2d(geom=“tile”,aes(填充=…密度…),轮廓=假)

“[中的错误似乎是此处报告的错误:

这似乎是此处报告的错误:

摘要(d)
看起来像什么?您确定数据框正常,并且访问的列正确吗?摘要(d)看起来像什么?您确定数据框正常,并且访问的列正确吗?