Re: [R] How to rearrange lattice graphics output?

From: Felix Andrews <felix_at_nfrac.org>
Date: Tue, 8 Jan 2008 22:13:59 +1100

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 / 安福立
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


______________________________________________ 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.

Received on Tue 08 Jan 2008 - 11:23:35 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 08 Jan 2008 - 11:30:05 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive