[R] xyplot - ordering factors in graph

Greg Snow 538280 at gmail.com
Sat Apr 21 20:03:40 CEST 2012


R works on the idea that factor level ordering is a property of the
data rather than a property of the graph.  So if you have the factor
levels ordered properly in the data, then the graph will take care of
itself.  To order the levels see functions like: factor, relevel, and
reorder.

On Sat, Apr 21, 2012 at 1:23 AM, pip <philsivyer at hotmail.com> wrote:
> Hello - newbie
> Have created a lattice graph and want to know how to sort one of the
> elements which is a factor.
> The factor numbers in graph are - eg - 10   32  21
>                                                                      2
> 22  4 etc
>
> Regards
>
> --
> View this message in context: http://r.789695.n4.nabble.com/xyplot-ordering-factors-in-graph-tp4576013p4576013.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