[R] problem when use R plug-in of Eclipse

zheboyang zheboyang at gmail.com
Fri Nov 30 13:06:06 CET 2007


Hi everybody!
I have a problem when use the StatET plug-in of Eclipse.
When I  use run plot() , it only output a ps file in working directory
below is the code(between #)
#########################################################
 > x <- rbinom(2000,1000,0.25)
x <- rbinom(2000,1000,0.25)
mean(x)
 > mean(x)
[1] 250.1305
 > hist(x,xlab="Numbers of success",main="")

hist(x,xlab="Numbers of success",main="")

 >
###########################################
when I use another code
###########################################
x <- rbinom(2000,1000,0.25)
mean(x)
x11()
hist(x,xlab="Numbers of success",main="")
###########################################
now, I will see the the graphic ,but later, it can't display. why?
Thanks!
need your help.



More information about the R-help mailing list