Tag Archive: R

BUBBLE SORT USING RUBY. GRAPH FOR ARRAY SIZE 300

Wed Apr  2 21:06:24 IST 2014

real	0m0.193s
user	0m0.032s
sys	0m0.004s

real	0m0.033s
user	0m0.028s
sys	0m0.004s

real	0m0.030s
user	0m0.028s
sys	0m0.000s

real	0m0.032s
user	0m0.024s
sys	0m0.008s

real	0m0.028s
user	0m0.024s
sys	0m0.000s

BUBBLE SORT USING RUBY. GRAPH FOR ARRAY SIZE 100

Sun Mar 30 17:49:05 IST 2014

real	0m0.398s
user	0m0.032s
sys	0m0.008s

real	0m0.019s
user	0m0.016s
sys	0m0.000s

real	0m0.023s
user	0m0.020s
sys	0m0.000s

real	0m0.024s
user	0m0.020s
sys	0m0.000s

real	0m0.024s
user	0m0.020s
sys	0m0.000s

R boxplot – Produce box-and-whisker plot(s) of the given (grouped) values

R shell session

> boxplot
function (x, ...)
UseMethod("boxplot")


> boxplot(1,2)
> boxplot(1,2)
> boxplot(1,2,3)
> threads <- factor(c(0,1,2,3,4,5,6,7,8,9))
> levels(threads)
 [1] "0" "1" "2" "3" "4" "5" "6" "7" "8" "9"
> maximum <- c(10,11,12,13,14,15,16,17,18,19,20)
> boxplot(threads,maximum)
> minimum <- c(10,11,12,13,14,15,16,17,18,19,20)
> boxplot(threads,maximum,minimum)
> actual <- c(13,14,15,16,17)
> boxplot(threads,maximum,minimum,actual)
> png(file="Rboxplot.png")
> boxplot(threads,maximum,minimum,actual)
> dev.off()
null device
          1
>

FIXME : create a R boxplot image from the above session.

R upstream project page

http://www.r-project.org/

Loading...
X
Copyright © 2009,  2010,  2011,  2012,  2013,  2014     BeautifulWork Project    e-mail:  ahiliation@yahoo.co.in
BeautifulWork Project comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.