R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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) > par1 = '10' > xlab = 'Survey Score' > main = 'Maternal IQ' > 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/1p06p1349955476.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/2lp481349955476.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/3zdq91349955476.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/4bd5j1349955476.tab") > > try(system("convert tmp/1p06p1349955476.ps tmp/1p06p1349955476.png",intern=TRUE)) character(0) > try(system("convert tmp/2lp481349955476.ps tmp/2lp481349955476.png",intern=TRUE)) character(0) > try(system("convert tmp/3zdq91349955476.ps tmp/3zdq91349955476.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.550 0.342 1.897