Re: [R] xyplot format axis

2009-06-16 Thread Deepayan Sarkar
On Tue, Jun 16, 2009 at 7:24 AM, taz9 wrote: > > Hi All, > > I'm trying to format the y-axis in an xyplot to show numbers with a comma > separating the thousands but I'm not able to do it using formatNum(y, > big.mark=","). This is what I have: > > library(lattice) > > year<-c(2003,2004,2005,2006,2

[R] xyplot format axis

2009-06-16 Thread taz9
Hi All, I'm trying to format the y-axis in an xyplot to show numbers with a comma separating the thousands but I'm not able to do it using formatNum(y, big.mark=","). This is what I have: library(lattice) year<-c(2003,2004,2005,2006,2007,2008,2003,2004,2005,2006,2007,2008) dept<-c("Politics","P