tags:

views:

121

answers:

1

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?

+4  A: 

It seems to be the bug reported here: http://groups.google.com/group/ggplot2/browse_thread/thread/6a7929d2b122efb2

xiechao