Re: [R] Adding text in the panels for Trellis plot ...

2009-11-27 Thread Deepayan Sarkar
On Thu, Nov 26, 2009 at 6:22 AM, ychu066 wrote: > > i was trying to do a for loop for plotting the histograms , but it doesnt > work properly > >> library(lattice) >> columns <- 8:153 >> plots <- vector("list", length(columns)) >> j <- 0 >> for (i in columns) > + { > +   plots[[ j <- j+1 ]] <- his

[R] Adding text in the panels for Trellis plot ...

2009-11-25 Thread ychu066
i was trying to do a for loop for plotting the histograms , but it doesnt work properly > library(lattice) > columns <- 8:153 > plots <- vector("list", length(columns)) > j <- 0 > for (i in columns) + { + plots[[ j <- j+1 ]] <- histogram( ~ data[,i] | data[,2],ylab = "Frequency", +