[R] How to override ordering of panels in xyplot()

Deepayan Sarkar deepayan.sarkar at gmail.com
Sat Mar 3 21:19:20 CET 2007


On 3/3/07, Michael Kubovy <kubovy at virginia.edu> wrote:
> Dear r-helpers,
>
> I'm conditioning an xyplot on a variable whose levels are'low',
> 'med', 'high'. How do I override the alphabetical ordering for the
> panels of the plot?

This has less to do with xyplot and more to do with the default of the
'levels' argument in the factor() function. Just make sure the levels
are in the right order in your data when xyplot is called.

Deepayan



More information about the R-help mailing list