[R] Controlling Order of Panels in Lattice Trellis Plots
gunter.berton at gene.com
Sat Feb 23 02:14:24 CET 2013
As you appear not to know, or at least have not stated, **what** you
want to do, how can you expect anyone to tell you **how** to do it?
On Fri, Feb 22, 2013 at 2:33 PM, Rich Shepard <rshepard at appl-ecosys.com> wrote:
> On Fri, 22 Feb 2013, Bert Gunter wrote:
>> You do not need to use ordered factors.
>> newfac <- factor(oldfac, lev= ...) ## will do it. e.g.
>>> x <- factor(letters[1:3]) ## default ordering is alphabetic (mod locale)
>>  a b c
>> Levels: a b c
>>> y <- factor(x,lev=letters[3:1]) ## reorder the levels
>>  a b c
>> Levels: c b a
> Makes sense. I wonder if this will work when only a portion of the site
> IDs need to be explicitly ordered. There are 64 sites in all. Might be
> easier to sort the text file.
> Thanks again,
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
Genentech Nonclinical Biostatistics
Internal Contact Info:
More information about the R-help