Re: [R] ggplot2: behaviour with empty datasets

2011-12-23 Thread Casper Ti. Vector
Thanks, I'll post to that list if the encountered problem is just about ggplot2. And from the date of the issue on GitHub it seems that I might need to manually work around the problem some more times :) On Fri, Dec 23, 2011 at 08:10:05AM -0600, Hadley Wickham wrote: > See https://github.com/hadle

Re: [R] ggplot2: behaviour with empty datasets

2011-12-23 Thread Hadley Wickham
See https://github.com/hadley/ggplot2/issues/31 - I totally agree that it's annoying. Hadley PS. You are more likely to get helpful responses about ggplot2 on the ggplot mailing list. On Fri, Dec 23, 2011 at 7:08 AM, Casper Ti. Vector wrote: > For example, prepare like this >> df.0 <- data.fram

[R] ggplot2: behaviour with empty datasets

2011-12-23 Thread Casper Ti. Vector
For example, prepare like this > df.0 <- data.frame(x = 0, y = 0, note = "1") > df.1 <- subset(df.0, note == "1") > df.2 <- subset(df.0, note == "2") Then a call to > ggplot() + aes(x = x, y = y) + > geom_point(data = df.1) + geom_point(data = df.2) produces the error > Error in eval(expr, envir