Re: [R] giving factor names

2011-06-20 Thread Deepayan Sarkar
On Fri, Jun 10, 2011 at 10:27 PM, Ethan Brown wrote: > Hi Kieran, > > I'm not very familiar with lattice, but here's a workaround that works for > me. Basically, I just created a new data.frame column that was a factor > (combo$zf), and forced its levels to be what you're looking for here. This w

Re: [R] giving factor names

2011-06-10 Thread Ethan Brown
Hi Kieran, I'm not very familiar with lattice, but here's a workaround that works for me. Basically, I just created a new data.frame column that was a factor (combo$zf), and forced its levels to be what you're looking for here. require(lattice) x<-c(1,2,3) y<-c(2,4,6) z<-c(0.1,0.5,2) combo<-expa

[R] giving factor names

2011-06-07 Thread kieran martin
Hi, I've been driving myself insane with this problem. I have a trellis plot of contours, and I want each level to have something like "z=value" for each one. I can get each one to say z, or each one to say the value (by using as.factor) but not both. Heres an artificial example to show what I mea