[R] ggplot facet spacing, wrapping

From: mfrumin <michael_at_frumin.net>
Date: Tue, 17 Jun 2008 03:54:35 -0700 (PDT)

I'm running into some problems with the spacing of some faceted ggplot plots. I have a number of time series faceted to be one above another, but the scale labels of the y axes all clobber each other at the bottom/top of each. for example, try:

qplot(x, y, data = data.frame(x = 1:10, y = 1:10, size = 1:10), facets = size ~ ., size = size) + scale_x_continuous(breaks = 1:10) + scale_y_continuous(limits = c(0,10))

and notice the 10's and the 0's on the respective Y axes are mushing each other. Is there a way to adjust the spacing of facets in a faceted plot?

Likewise, what about wrapping, so that if I had say 20 or 30 facets it would make a grid of facets rather than 30 in a column (or in a row).

thanks,
mike

-- 
View this message in context: http://www.nabble.com/ggplot-facet-spacing%2C-wrapping-tp17882383p17882383.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 17 Jun 2008 - 10:57:07 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 15:00:47 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive