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
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",
+
2 matches
Mail list logo