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
] labeling panels in lattice
plots
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
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:
>
>
>>
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"
5 matches
Mail list logo