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(182,161,161,177,157,170,167,186,178,171,175,57,161,168,163,166,187,168,197,175,180,170,175,173,171,166,169,166,157,183,166,178,173,164,169,176,166,174,178,187,164,178,163,183,179,160,180,161,174,162,182,165,169,185,177,176,170,183,172,173,165,177,180,173,189,162,165,164,158,178,175,173,165,163,166,171,160,160,182,183,165,168,169,167,170,182,178,165,163,162,173,161,184,180,189,165,185,169,159,155,164,178,163,163,175,164,152,167,166,166,183,179,174,179,167,168,184,184,169,178,178,167,178,165,179,169,153,157,171,157,166,185,160,148,177,162,172,167,188,191,175,163,165,176,171,160,165,157,173,184,168,162,150,162,163,169,172,170,169,167,163,161,162,172,163,159,170,166,191,158,169,163,170,176,168,178,174,170,178,174,176,154,181,165,173,162,172,169,183,158,185,173,164,156,164,175,180,175,181,177) > par1 = '10' > xlab = 'Height' > main = 'Davis Height' > par1 <- '10' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Ian E. Holliday, 2012, Histogram, QQplot and Density Plot (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_Distributional Plots.wasp/ > #Source of accompanying publication: > # > x <- x[!is.na(x)] > postscript(file="/var/wessaorg/rcomp/tmp/1cpx11338543696.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/2lmka1338543696.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/3z0zx1338543696.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/479v41338543696.tab") > > try(system("convert tmp/1cpx11338543696.ps tmp/1cpx11338543696.png",intern=TRUE)) character(0) > try(system("convert tmp/2lmka1338543696.ps tmp/2lmka1338543696.png",intern=TRUE)) character(0) > try(system("convert tmp/3z0zx1338543696.ps tmp/3z0zx1338543696.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.037 0.253 1.306