On 11/8/07, ONKELINX, Thierry <[EMAIL PROTECTED]> wrote:
> You could work around it like this.
>
> n <- length(levels(TDBU$system))
> rows <- ceiling(sqrt(n))
> TDBU$rows <- ceiling(as.numeric(TDBU$system) / rows)
> TDBU$cols <- (as.numeric(TDBU$system) - 1)  %% rows
>
> ggplot(TDBU,aes(x=x))+geom_histogram(aes(y=..density..))+ geom_density()
> + facet_grid(rows ~ cols)

Yes, that's the best you can do at the moment.  I'm hoping to add a
more lattice-like facetting over Christmas.  Keep your fingers
crossed!

Hadley

-- 
http://had.co.nz/

______________________________________________
R-help@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.

Reply via email to