On Oct 25, 2012, at 5:14 PM, Rlotus wrote: > plot(y,x, ylab="sample mean",xlab="sample size") > > for (i in seq(1:20)) >> {rsidpVector= rsidp(1) >> x<-mean(rsidpVector) >> y<-length(number) >> print (rsidpVector) >> print(x) > > sorry, but how i can use points function in the loop?
Tested code provided in response to reproducible examples. The points function will not redraw a new plot with each iteration. It might be the case that you do not even need a loop, but you have not described the problem yet. -- David Winsemius, MD Alameda, CA, USA ______________________________________________ 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.