Elaine
unread,Apr 24, 2009, 12:19:55 PM4/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'm getting some very interesting behavior from ggplot when I try to
set the y axis limits when using facets. I'm using:
coord_cartesian(ylim=c(0,100))
which is my understanding of the proper way to restrict the range of y
values displayed on my plot without changing the data itself (as
opposed to ylim()). When I do this without facets, I think it works
correctly. If I add facets, however, the lines that extend beyond 100
on the y axis do not disappear, but rather continue out of their facet
into another. In other words, the limits of the y-axis in each facet
is being restricted as I want, but the data is continuing to be
shown. This is really quite interesting, but not correct. Am I using
the wrong method to specify ylim in this context, or is this a bug??