[R] Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP

Karl Ove Hufthammer karl at huftis.org
Fri Nov 13 09:18:56 CET 2009


On Thu, 12 Nov 2009 19:10:52 -0800 (PST) ychu066 <ychu066
@aucklanduni.ac.nz> wrote:
> And I also want to save each histogram in each separate pdf file using the
> following codes ?.
> png("hist.png[i]")
> dev.off()

Try png(paste("hist",i,".png",sep="") instead.

-- 
Karl Ove Hufthammer




More information about the R-help mailing list