[R] re-ordering bwplot
Deepayan Sarkar
deepayan.sarkar at gmail.com
Fri Jul 23 19:36:17 CEST 2010
On Fri, Jul 23, 2010 at 10:02 AM, Eck, Bradley J
<brad.eck at mail.utexas.edu> wrote:
> Dear list:
>
> I'm using bwplot to compare concentrations by location and treatment as in:
>
> # using built in data
> bwplot( conc ~ Type : Treatment, data = CO2 )
>
> I would like the order of the plots to be: 3,4,1,2. I can't seem to figure this out with index.cond or permc.cond.
>
> Any help is appreciated!
I think the only way is to
(1) explicitly create the interaction variable
(2) re-create the factor using factor() with your desired levels
This should be done before the bwplot() call.
-Deepayan
More information about the R-help
mailing list