R_PHP_Online-- Online PHP CGI for R program

by Steve Chen in Department of Statistics, TKU, Taipei, Taiwan

Check out Net-Stat in Dept. of Statistics, TKU

DEMO

Please input your R program below:
(You CANNOT enter banned R functions)

  

Examples:

1.Simple:

x = c(12,13,14,15,16)
sum(x)
mean(x)
2.You can show R plot(s) as the following example:
    (You MUST use the bitmap and dev.off functions to generate a plot)
    (Graphic file format can be jpg or png)

x = c(12,13,14,12,12)
y = c(7,5,34,2,42)
# first plot
jpeg(file="test1.jpg")
hist(x,col=2)
dev.off()
# second plot
jpeg(file="test2.png")
plot(x,y)
dev.off()