Re: [R] Lattice xyplot with text under x-axis

2009-04-17 Thread kate.m
Still on this question, I'm having problems with displaying the text when repeated values are present. For example: library(lattice) year<-c(2001,2002,2003,2001,2002,2003,2001,2002,2003,2001,2002,2003) fac<-c("arts","arts","arts","arts","arts","arts","sci","sci","sci","sci","sci","sci") type<-c("

Re: [R] Lattice xyplot with text under x-axis

2009-04-17 Thread kate.m
A million thanks Deepayan! That works great. Deepayan Sarkar wrote: > > On Wed, Apr 15, 2009 at 8:59 AM, kate.m wrote: >> >> Hi All, >> >> I have a data set which I need to plot and show the values of one of the >> variables as a second x-axis. >> >> library(lattice) >> year<-c(2001,2002,2003

Re: [R] Lattice xyplot with text under x-axis

2009-04-16 Thread Deepayan Sarkar
On Wed, Apr 15, 2009 at 8:59 AM, kate.m wrote: > > Hi All, > > I have a data set which I need to plot and show the values of one of the > variables as a second x-axis. > > library(lattice) > year<-c(2001,2002,2003,2004,2005,2006) > fac<-c("arts","arts","arts","sci","sci","sci") > staff<-c(95,98,99

[R] Lattice xyplot with text under x-axis

2009-04-15 Thread kate.m
Hi All, I have a data set which I need to plot and show the values of one of the variables as a second x-axis. library(lattice) year<-c(2001,2002,2003,2004,2005,2006) fac<-c("arts","arts","arts","sci","sci","sci") staff<-c(95,98,99,32,31,36) part<-c(32,31,33,15,16,14) df1<-data.frame(year,fac,st

[R] Lattice xyplot with text under x-axis

2009-04-15 Thread kate.m
Hi All, I have a data set which I need to plot and show the values of one of the variables as a second x-axis. library(lattice) year<-c(2001,2002,2003,2004,2005,2006) fac<-c("arts","arts","arts","sci","sci","sci") staff<-c(95,98,99,32,31,36) part<-c(32,31,33,15,16,14) df1<-data.frame(year