Message-ID: <5495DA1C-23DF-41D6-A16E-06D42580ECF0@comcast.net>
Date: 2012-10-26T05:33:35Z
From: David Winsemius
Subject: How to draw the graph???
In-Reply-To: <1351210484791-4647482.post@n4.nabble.com>
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