R version 2.12.0 (2010-10-15) Copyright (C) 2010 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(13.32,5.8,5.44,3.91,3.68,3.6,3.49,3.33,2.78,2.71,2.55,2.5,2.47,2.37,2.36,2.29,2.19,2.09,2.02,1.86,1.78,1.76,1.73,1.69,1.68,1.63,1.63,1.63,1.6,1.54,1.52,1.49,1.47,1.46,1.41,1.34,1.28,1.26,1.25,1.24,1.24,1.21,1.19,1.17,1.17,1.16,1.16,1.15,1.14,1.13,1.09,1.07,1.06,1.05,1.03,1.01,1.01,1.01,0.99,0.98,0.98,0.98,0.95,0.95,0.94,0.93,0.92,0.91,0.9,0.88,0.88,0.87,0.87,0.87,0.86,0.85,0.84,0.83,0.82,0.82,0.82,0.81,0.81,0.81,0.81,0.8,0.79,0.78,0.76,0.76,0.75,0.73,0.68,0.68,0.67,0.66,0.66,0.64,0.63,0.6,0.6,0.59,0.57,0.55,0.54,0.53,0.53,0.51,0.48,0.47,0.44,0.32,0.31,0.02,0.02,0.01) > par1 = '20' > xlab = 'Hours' > main = 'Workshop 1 Times' > postscript(file="/var/www/rcomp/tmp/1g3x31318409187.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > par1 <- as.numeric(par1) > myhist<-hist(x, breaks=par1, col=2, xlab=xlab, main=main) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/2mprp1318409187.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > qqline(x, col=2) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/3qf7t1318409187.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(density(x), xlab=xlab, main=main) > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Descriptive Statistics',3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'mean',header=TRUE) > a<-table.element(a,signif(mean(x), 6)) > a<-table.element(a,hyperlink('http://www.xycoon.com/arithmetic_mean.htm','formula','click to see the formula')) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'standard deviation',header=TRUE) > a<-table.element(a,signif(sd(x), 6)) > a<-table.element(a,hyperlink('http://www.xycoon.com/unbiased1.htm','formula','click to see the formula')) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/rcomp/tmp/4h9621318409187.tab") > > try(system("convert tmp/1g3x31318409187.ps tmp/1g3x31318409187.png",intern=TRUE)) character(0) > try(system("convert tmp/2mprp1318409187.ps tmp/2mprp1318409187.png",intern=TRUE)) character(0) > try(system("convert tmp/3qf7t1318409187.ps tmp/3qf7t1318409187.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.280 0.100 1.376