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_
issection of
uncertainties, a surgery of suppositions. ~M.J.Moroney
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Ben Bolker
Verzonden: donderdag 8 november 2007 14:53
Aan: r-help@r-project.org
Onderwerp: [R] ggplot2 facets as rows and columns
Does anyone (Ha
Does anyone (Hadley??) know if there's a straightforward
way in ggplot2 to get data divided by a single factor to
plot as a rectangular grid of subplots? So far I've only
been able to get such data plotted as a single row or
single column of skinny subplots. The code below gives
an example i
3 matches
Mail list logo