Re: [R] qplot (ggplot2) faceting histogram with missing values

2008-03-03 Thread hadley wickham
Hi Ista, That's a bug, and will be fixed in the next version (hopefully to be released in the next couple of days) Hadley On Mon, Mar 3, 2008 at 7:10 PM, Ista Zahn <[EMAIL PROTECTED]> wrote: > Hi, > I've run into a difficulty with qplot function (in the ggplot2 > package). I can facet histogra

[R] qplot (ggplot2) faceting histogram with missing values

2008-03-03 Thread Ista Zahn
Hi, I've run into a difficulty with qplot function (in the ggplot2 package). I can facet histograms even when the faceting variable contains missing values, but only so long as the faceting variable is not a factor. Example: y1 <- rnorm(10) x1 <- c(rep(1,5), rep(2,4), NA) x2 <- factor(c(rep