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

Karl Ove Hufthammer karl at huftis.org
Tue Nov 17 08:23:18 CET 2009


On Mon, 16 Nov 2009 19:54:08 -0800 (PST) ychu066 <ychu066
@aucklanduni.ac.nz> wrote:
> here is the codes that i tried.....
> 
> > png(paste("hist",i,".png",sep="") 
> + library(lattice)
> Error: unexpected symbol in:
> "png(paste("hist",i,".png",sep="") 
> library"

There is a missing ')' at the end of the first line.
If you use an editor with syntax highlighting, it is
easy to spot these types of errors.

-- 
Karl Ove Hufthammer




More information about the R-help mailing list