It works for me.
fg <- ordered(letters[1:3])
levelplot(1:3 ~ 1:3 * 1:3 | fg)
# (panels a, b, c)
fg <- ordered(fg, levels=c('c','b','a'))
levelplot(1:3 ~ 1:3 * 1:3 | fg)
# (panels c, b, a)
> packageDescription("lattice")$Version
[1] "0.17-2"
On Jan 8, 2008 4:43 AM, Weidong Gu <wgu at uab.edu>
wrote:> My question arises when I use levelplot graphics. For example,
>
>
>
> levelplot(z~x*y|fg) where fg is a factor with three levels of
> 'a','b','c'. The panels come out in a default
order. I would like to
> rearrange the panels in a manner of 'c','b','a'. I
used
>
> fg<-ordered(fg, levels=c('c','b','a'))
>
> But the panels are still the same.
>
>
>
> I would appreciate any help...
>
>
>
> Weidong Gu
>
> UAB
>
>
>
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> 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.
>
--
Felix Andrews / $B0BJ!N)(B
PhD candidate
Integrated Catchment Assessment and Management Centre
The Fenner School of Environment and Society
The Australian National University (Building 48A), ACT 0200
Beijing Bag, Locked Bag 40, Kingston ACT 2604
http://www.neurofractal.org/felix/
3358 543D AAC6 22C2 D336 80D9 360B 72DD 3E4C F5D8