Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-18 Thread Tal Galili
Change the factor names of var in: y~x | var Tal -- My contact information: Tal Galili E-mail: tal.gal...@gmail.com Phone number: 972-52-7275845 FaceBook: Tal Galili My Blogs: http://www.talgalili.com (Web and general, Hebrew)

Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-17 Thread Colin Millar
Or alternatively store as a list and export later if you want ... after some tidying ... 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, xlab = Score,

Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-17 Thread ychu066
THANKS EVERYONE, IT WORKS NOW !!! BY THE WAY, i want to improve my R coding skills, any suggestion for me ? Colin Millar wrote: Or alternatively store as a list and export later if you want ... after some tidying ... library(lattice) columns - 8:153 plots - vector(list,

Re: [R] Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP

2009-11-17 Thread ychu066
Hi again, do you know how can I use the main function to change the title for eac h histogram. i.e that first graph show have a title Index 1 but because the variable name column starts the 8th the title shows up as Index 8 , i have tried use main = colnames(data)[i-1] but it result errors