wolfgang.trutschnig
unread,Feb 12, 2009, 6:41:10 AM2/12/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
Dear all !
My question can most easily be understood by the following example:
DM<-diamonds
p<-ggplot(mapping=aes(x = carat, y = price))
p<- p + coord_cartesian(xlim=NULL, ylim=c(0,5000))
p<-p+geom_point(data=DM )
p<-p+facet_wrap(~ cut,ncol=2)
p
In other words: I want to zoom on (but not filter) a part of the given
data (ylim=c(0,5000)) and afterwards use this zoom for the facet_wrap
which however produces the above result.
Since with facet_grid instead of facet_wrap it works perfectly my
question is if this is a bug or what can be done to make the
coordinate-settings also work in the facet_grid.
Thanks in advance and best regards
Wolfgang