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] xyplot - show values of a series on graph

2009-04-08 Thread alienz747
This is great, thanks a lot! On Wed, Apr 8, 2009 at 3:50 PM, baptiste auguie wrote: > not very clean, but perhaps, > > xyplot(cars+trucks~year, data=df2, type="o", > panel=function(x,y,subscripts,...){ >panel.xyplot(x,y,subscripts=subscripts,...) > > grid.text(unit(df2$year,"native"),u

Re: [R] xyplot - show values of a series on graph

2009-04-08 Thread alienz747
Thank you so much Deepayan! My problem is solved. On Wed, Apr 8, 2009 at 3:47 PM, Deepayan Sarkar wrote: > On Wed, Apr 8, 2009 at 12:25 PM, taz9 wrote: > > > > Thank you very much for your help. I tried to use lattice but I'm not > sure > > how to restrict it to display only the values of "cars"

[R] xyplot - label one line

2009-04-07 Thread alienz747
Hi All, I have a panel xyplot with 2 lines in each panel. I'd like to label one line only but don't know how to do this. The code below labels both lines. Any ideas how I could change it to show the y-values of only one of the lines? Many thanks! xyplot(apples + bananas ~ year | category, data=fr

[R] xyplot - label one line

2009-04-07 Thread alienz747
Hi All, I have a panel xyplot with 2 lines in each panel. I'd like to label one line only but don't know how to do this. The code below labels both lines. Any ideas how I could change it to show the y-values of only one of the lines? Many thanks! xyplot(apples + bananas ~ year | category, data=fr