R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-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(89,90,82,82,71,80,62,77,80,87,96,80,85,89,89,73,88,86,83,91,98,80,84,90,92,86,117,88,86,78,104,89,99,84,89,95,58,77,77,98,58,81,92,94,87,75,80,84,87,114,97,102,80,112,104,75,82,92,102,73,78,74,92,97,92,91,102,89,98,117,92,70,63,91,106,81,98,88,95,105,90,58,86,112,71,98,87,98,117,98,98,90,84,86,68,86,77,83,90,107,102,90,113,86,105,110,82,89,99,113,91,92,86,91,82,86,86,102,84,80,96,117,88,99,89,86,98,58,98,58,81,90,112,84,84,75,78,94,75,82,87,59,68,80,94,87,70,113,99,90,102,80,98,98,95,104,86,84,85,90,86,97,86,94,85,90,64,105,96,82,95,99,82,102,77,75,77,77,98,87,73,73,85,76,94,73,60,99,106,94,89,79,112,94,82,75,86,79,82,92,94,84,93,60,82,71,89,110,74,98,96,106,103,87,98,72,98,84,77,85,85,99,90,87,99,89,97,106,82,90,92,95,99,86,90,84,70,92,98,110,92,93,87,91,104,88,92,107,85,93,89,101,94,82,88,73,112,93,77,93,93,87,95,93,74,69,80,82,98,112,101,87,90,72,85,97,107,77,89,103,87,112,95,92,89,86,85,92,78) > par1 = '15' > xlab = 'WJ7ARD' > main = 'Year 7 CARE' > postscript(file="/var/wessaorg/rcomp/tmp/18by01382443366.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) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/21vb61382443366.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/wessaorg/rcomp/tmp/3d3wr1382443366.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(density(x), xlab=xlab) > dev.off() null device 1 > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/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,mean(x)) > 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,sd(x)) > 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/wessaorg/rcomp/tmp/4am501382443366.tab") > > try(system("convert tmp/18by01382443366.ps tmp/18by01382443366.png",intern=TRUE)) character(0) > try(system("convert tmp/21vb61382443366.ps tmp/21vb61382443366.png",intern=TRUE)) character(0) > try(system("convert tmp/3d3wr1382443366.ps tmp/3d3wr1382443366.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.018 0.418 2.415