On Fri, 6 Sep 2013, S Ellison wrote:
#Test data
ym <-as.data.frame(expand.grid(Y=c(2004:2006, 2010:2012), A=1:4)) #A is an
arbitrary variable to give us some panels.
ym$x <- runif(nrow(ym))
library(lattice)
#Plots without, andf with, a groups argument
xyplot(x~Y|A, data=ym, type="l")
xyplot(
>My xyplot() with superposed multiple condiions looks
> better with lines than with points (it's easier to see
> changes over time with the lines). But, there are gaps in the
> years (the x axis) for which there are data to be plotted.
> For example, there are data for years 2004-2006 and
Behalf Of Rich Shepard
Sent: Friday, 6 September 2013 06:24
To: r-help@r-project.org
Subject: [R] xyplot() with discontinuous x-axis variable
My xyplot() with superposed multiple condiions looks better with lines
than with points (it's easier to see changes over time with the lines). But,
ther
My xyplot() with superposed multiple condiions looks better with lines
than with points (it's easier to see changes over time with the lines). But,
there are gaps in the years (the x axis) for which there are data to be
plotted. For example, there are data for years 2004-2006 and 2010-2012, but
4 matches
Mail list logo