[R] How to draw the graph???

Rlotus yerlan_ at hotmail.com
Thu Oct 25 23:24:19 CEST 2012


I have his code. I wanna draw the graph according to x and y. But at the end
when I run the code it gives me only one dot.......it is strange cuz from
the loop it has to give 20 dots. Help me plz to draw a graph(((

for (i in seq(1:20))
{rsidpVector= rsidp(1)	
x<-mean(rsidpVector)
y<-length(number)
plot(y,x,ylab="sample mean",xlab="sample size")
print (rsidpVector)
print(x)

}


rsidp<-function(x){
	i=0
	{y<-sample(number,x), replace=TRUE}
	return(y)
}




--
View this message in context: http://r.789695.n4.nabble.com/How-to-draw-the-graph-tp4647464.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list