Re: [R] Change plot order in lattice xyplot

2010-09-08 Thread William Dunlap
> -Original Message- > From: r-help-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] On Behalf Of Sam Albers > Sent: Wednesday, September 08, 2010 9:42 AM > To: r-help@r-project.org > Subject: Re: [R] Change plot order in lattice xyplot > > >

Re: [R] Change plot order in lattice xyplot

2010-09-08 Thread Sam Albers
Prior to creating a plot I usually just order the factor levels to the order I want them in. So for your example I would do: #Create some data library(lattice) x <- runif(100, 0, 20) df <- data.frame(x) df$y <- (1:10) df$Month <- c("October", "September", "August", "July","June") #Plot the f

[R] Change plot order in lattice xyplot

2010-09-08 Thread Paul Simonin
Greetings, I am writing with a question regarding plotting using the xyplot command in lattice. I currently have the commands shown below, but I need to produce a plot that orders the Month variable differently. I was told to use the lattice.options command (shown below) to change the plot orde