Re: [R] Lattice xyplot with two y axis

2009-04-14 Thread alienz747
Richie, this is perfect! Thank you so much. All the best, Kate On Tue, Apr 14, 2009 at 12:16 PM, wrote: > > I have some data which needs to be plotted with lattice. > > > > library(lattice) > > cars <- c(0.1, 0.3, 0.6, 0.4, 0.9) > > trucks <- c(0.2, 0.5, 0.4, 0.5, 0.1) > > drivers<-c(121,145,16

Re: [R] Lattice xyplot with two y axis

2009-04-14 Thread Dieter Menne
taz9 gmail.com> writes: > I have some data which needs to be plotted with lattice. > > library(lattice) > cars <- c(0.1, 0.3, 0.6, 0.4, 0.9) > trucks <- c(0.2, 0.5, 0.4, 0.5, 0.1) > drivers<-c(121,145,167,200, 210) > year<-c(2005,2006,2007,2008,2009) > type<-c("local","local","foreign","foreign"

Re: [R] Lattice xyplot with two y axis

2009-04-14 Thread Richard . Cotton
> I have some data which needs to be plotted with lattice. > > library(lattice) > cars <- c(0.1, 0.3, 0.6, 0.4, 0.9) > trucks <- c(0.2, 0.5, 0.4, 0.5, 0.1) > drivers<-c(121,145,167,200, 210) > year<-c(2005,2006,2007,2008,2009) > type<-c("local","local","foreign","foreign","foreign") > xyplot(cars+

[R] Lattice xyplot with two y axis

2009-04-14 Thread taz9
Hi All, I have some data which needs to be plotted with lattice. library(lattice) cars <- c(0.1, 0.3, 0.6, 0.4, 0.9) trucks <- c(0.2, 0.5, 0.4, 0.5, 0.1) drivers<-c(121,145,167,200, 210) year<-c(2005,2006,2007,2008,2009) type<-c("local","local","foreign","foreign","foreign") xyplot(cars+trucks~y