Skip to content
Prev 175635 / 398503 Next

labeling panels in lattice plots

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 = TRUE,
           main = "Annual Monthly Minimum, Average and Maximum PPT")
On Tue, Mar 31, 2009 at 08:28, <Steve_Friedman at nps.gov> wrote: