[R] xyplot - ordering factors in graph

2012-04-21 Thread pip
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:

Re: [R] xyplot - ordering factors in graph

2012-04-21 Thread Greg Snow
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

Re: [R] xyplot - ordering factors in graph

2012-04-21 Thread pip
Thanks very much -- View this message in context: http://r.789695.n4.nabble.com/xyplot-ordering-factors-in-graph-tp4576013p4577025.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list