Skip to content
Prev 200502 / 398503 Next

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

here is the codes that i tried.....
+ library(lattice)
Error: unexpected symbol in:
"png(paste("hist",i,".png",sep="") 
library"
+ histogram(~ data[,i] | data[,2],
data=data,ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100)))
Error: unexpected ')' in:
"for(i in 8:153){ 
histogram(~ data[,i] | data[,2],
data=data,ylab="Frequency",xlim=c(1,5),xlab="Score",ylim=c(0,100)))"
Error: unexpected '}' in "}"
Error in dev.off() : cannot shut down device 1 (the null device)
ychu066 wrote:

  
    
  

Thread (12 messages)

ychu066 Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 12 Karl Ove Hufthammer Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 13 ychu066 Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 16 ychu066 Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 16 ychu066 Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 16 Karl Ove Hufthammer Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 16 Tal Galili Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 17 Colin Millar Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP Nov 17 ychu066 Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP Nov 17 David Winsemius Plotting Histogram using histogram() and for loop and I want to save the histogram individually ... HELP Nov 17 ychu066 Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP Nov 17 Tal Galili Plotting Histogram using histogram() and for loop and Iwant to save the histogram individually ... HELP Nov 18