[R] create 3x2 panel boxplots
Greg Snow
538280 at gmail.com
Tue Oct 30 18:06:58 CET 2012
You mention trellis, so I will assume that you already know about the
trellis graphics functions (in the lattice package).
If you are creating all the plots from a single dataset using
conditioning then you can just use the 'layout' argument to specify
the 3x2 arrangement (note that this argument does col X row rather
than row X col like pretty much everything else).
If you are calling the bwplot function 6 times and want to arrange
them all on the same page then look at the print.trellis function.
On Tue, Oct 30, 2012 at 9:08 AM, nikalk <nikalk at gmail.com> wrote:
> Hi, I would like to create a trellis plot (3x2) of 6 individual box plots.
> It would look like this:
> (Created semi-manually)
> <http://r.789695.n4.nabble.com/file/n4647878/Figure8.jpg>
> What would be the most elegant way to do this?
> Thank you!
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/create-3x2-panel-boxplots-tp4647878.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.
--
Gregory (Greg) L. Snow Ph.D.
538280 at gmail.com
More information about the R-help
mailing list