R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(111,102,108,109,118,79,88,102,105,92,131,104,83,84,85,110,121,120,100,94,89,93,128,84,127,106,129,82,106,109,91,111,105,118,103,101,101,95,108,95,98,82,100,100,107,95,97,93,81,89,111,95,106,83,81,115,112,92,85,95,115,91,107,102,86,96,114,105,82,120,88,90,85,106,109,75,91,96,108,86,98,99,95,88,111,103,107,118,52,55,80,45,60,34,45,68,26,70,85,54,55,40,55,50,71,55,70,55,60,65,66,55,90,55,60,35,55,26,14,45,35,65,35,60,60,60,65,45,20,50,60,48,40,55,54,40,40,34,60,30,75,24,30,80,60,46,35,60,75,54,78,20,45,60,70,35,20,60,20,50,50,75,70,20,45,20,50,55,15,26,25,30,60,40,40,50) > par1 = '10' > ylab = 'IQ' > xlab = 'Grade' > postscript(file="/var/wessaorg/rcomp/tmp/1t8851327946667.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) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2jhnk1327946667.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > qqnorm(x) > qqline(x, col=2, xlab=xlab, ylab=ylab) > 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/3oat31327946667.tab") > > try(system("convert tmp/1t8851327946667.ps tmp/1t8851327946667.png",intern=TRUE)) character(0) > try(system("convert tmp/2jhnk1327946667.ps tmp/2jhnk1327946667.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.711 0.132 0.838