> -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
>
>
>
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
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
3 matches
Mail list logo