Re: [R] labeling panels in lattice plots

2009-03-31 Thread Coltrey Mather
Converting rain.stats$year to a factor yields the results you seem to want: xyplot(rain.stats$min+ rain.stats$max + rain.stats$ave ~ rain.stats$month |as.factor(rain.stats$year), lty = 1, data = rain.stats, type = c("l","l", "l"), col = c("red", "blue", "green"), distribute.type = TRU

Re: [R] labeling panels in lattice plots

2009-03-31 Thread Steve_Friedman
] labeling panels in lattice plots

Re: [R] labeling panels in lattice plots

2009-03-31 Thread Sundar Dorai-Raj
Try converting year to a factor xyplot(min + max + ave ~ month | factor(year), data = rain.stats, ...) Also, notice the inclusion of the "data" argument. HTH, --sundar On Tue, Mar 31, 2009 at 6:28 AM, wrote: > > I am using windows XP with R 2.8.1 > > > I am generating a lattice plot of annua

Re: [R] labeling panels in lattice plots

2009-03-31 Thread stephen sefick
would you mind creating a dummy data.frame or maybe dput() a smaller subset of the data frame? thanks Stephen Sefick On Tue, Mar 31, 2009 at 9:28 AM, wrote: > > I am using windows XP with R 2.8.1 > > > I am generating a lattice plot of annual rain patterns using the following > function: > > >>

[R] labeling panels in lattice plots

2009-03-31 Thread Steve_Friedman
I am using windows XP with R 2.8.1 I am generating a lattice plot of annual rain patterns using the following function: > xyplot(rain.stats$min+ rain.stats$max + rain.stats$ave ~ rain.stats$month |rain.stats$year, lty = 1, data = rain.stats, type = c("l","l", "l"), col = c("red"