简体   繁体   中英

Why do I get an error when I run some examples from the online ggplot2 reference manual?

Trying the ggplot2 examples in the online reference manual, and particularly in this page , I fail to produce all but the first of the second example's plots.

> 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).

I have R ver. 2.10.1 and ggplot2 ver. 0.8.6

What is wrong?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM