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(3,4.33,6.33,43.67,44,47,47,47,48.33,49,49.33,49.67,51,51,51,51,52.67,53.33,53.67,53.67,54,54,54.33,54.33,54.67,54.67,54.67,55,55,55.33,55.33,55.33,55.67,55.67,56,56,56,56.33,56.33,56.67,56.67,56.67,56.67,57,57.33,57.33,57.67,57.67,58,58,58,58,58,58,58,58,58.33,58.33,58.67,58.67,58.67,58.67,58.67,58.67,58.67,59,59,59.33,59.33,59.33,59.33,59.33,59.67,59.67,59.67,59.67,59.67,59.67,60,60,60,60,60,60,60,60,60,60.33,60.33,60.33,60.33,60.33,60.33,60.67,60.67,60.67,60.67,60.67,61,61,61,61,61,61,61.33,61.33,61.33,61.33,61.33,61.33,61.33,61.67,61.67,61.67,61.67,61.67,61.67,61.67,61.67,62,62,62,62,62,62,62.33,62.33,62.33,62.33,62.67,63,63,63,63.33,63.33,63.33,63.33,63.33,63.67,63.67,63.67,63.67,63.67,63.67,63.67,63.67,63.67,64,64,64,64,64,64,64,64,64.33,64.33,64.67,64.67,64.67,64.67,65,65,65,65.33,65.33,65.67,65.67,65.67,65.67,65.67,66,66,66,66,66.33,66.33,66.67,66.67,66.67,66.67,67.33,67.67,68,68.67,69,70,70.33,71.33) > par1 = '10' > ylab = 'Y avriable Name' > xlab = 'X variable Name' > postscript(file="/var/wessaorg/rcomp/tmp/1yd5d1318694006.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/2an9y1318694006.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/39pbi1318694007.tab") > > try(system("convert tmp/1yd5d1318694006.ps tmp/1yd5d1318694006.png",intern=TRUE)) character(0) > try(system("convert tmp/2an9y1318694006.ps tmp/2an9y1318694006.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.752 0.113 0.862