R version 3.0.1 (2013-05-16) -- "Good Sport" 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(161,161,157,161,168,163,166,168,175,170,171,166,169,166,157,166,164,169,166,164,163,160,174,162,165,173,162,165,164,158,175,165,163,166,160,160,165,169,167,170,165,163,162,161,165,169,159,164,163,163,175,164,152,167,166,166,174,167,168,178,165,157,171,157,166,160,148,162,172,163,165,176,171,160,165,157,173,168,162,150,163,167,163,161,162,172,159,170,166,158,165,162,172,169,158,164,156,164,182,177,170,167,186,178,171,175,187,197,180,175,173,183,178,173,176,174,178,187,178,183,179,182,169,185,176,183,172,173,165,177,180,189,178,173,182,183,168,182,178,173,184,180,189,185,178,183,179,179,184,184,169,178,178,167,185,177,188,191,175,184,169,172,163,191,169,170,168,178,170,178,174,176,173,183,185,173,175,180,181,177) > par1 = '10' > xlab = 'Height' > main = 'Male Vs. Female Height' > x <- x[!is.na(x)] > postscript(file="/var/wessaorg/rcomp/tmp/1avg71378105040.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/wessaorg/rcomp/tmp/2a1771378105040.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/3k1gw1378105040.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/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,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/wessaorg/rcomp/tmp/4eajq1378105040.tab") > > try(system("convert tmp/1avg71378105040.ps tmp/1avg71378105040.png",intern=TRUE)) character(0) > try(system("convert tmp/2a1771378105040.ps tmp/2a1771378105040.png",intern=TRUE)) character(0) > try(system("convert tmp/3k1gw1378105040.ps tmp/3k1gw1378105040.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.420 0.550 2.989