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
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
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"
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
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
5 matches
Mail list logo