Dear r-user,
I've wrote a small function to visualize the creation of a histogram. Therefore I create a vector with random values and let them plot in histograms. I better give a small example in R-Code: i=0 funVec=rnorm(1000) temp=hist(funVec,plot=FALSE) plot(1,xlim=c(max(temp$breaks),min(temp$breaks)), ylim=c(0,max(temp$counts)+0.1*max(temp$counts)),col="white") for(i in 1:1000) { hist(funVec[1:i],add=TRUE,col="white") Sys.sleep(1/25) } I don't find any mistake in the example above and nevertheless there something strange about the result. R should plot 1000 histograms with time breaks of 1/25 seconds between the single plots. But the program visualize not even 100 steps. I don't understand that circumstance. If I don't use the add parameter, R visualize all 1000 steps. I hope somebody could help me or explain me what ist happening there. I m looking forward to any hints or clues. Greetings and thanks in advance Etienne [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.