Elaine
unread,Mar 24, 2009, 1:53:35 PM3/24/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ggplot2
I have recently run into two problems with facetting that appear to be
bugs. I'd like to know if 1) I am doing something wrong, 2) these are
known bugs, or 3) these are not known (in which case I will provide a
reproducible example).
Problem #1:
When I use facet_wrap and specify ncol or nrow in a way that creates a
single row or column it crashes my R session. For example, if I have
a factor with 3 levels, and I specify ncol=3 or nrow=1, it crashes
either way. (I now realize that I can do this with facet_grid( . ~
Factor), too)
Problem #2:
I have found that when I use facet_wrap with two factors to the right
of the tilde (i.e. facet_wrap( ~ Var1 + Var2)), I do not get the
correct plot. That is, I get a plot that looks like it is what I
want, but the data is not correct. I'm guessing it is the labels that
are wrong rather than the data itself.