R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" 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(50.69013383,36.67956693,24.85707655,63.8493725,71.88026786,61.16237624,51.77302394,53.55707102,58.5107985,27.25571118,48.12138237,59.20163898,39.81231053,70.80206783,23.57497941,47.20356717,34.20659133,76.54794086,51.89976687,65.28921098,63.52570697,45.63928326,39.85545173,45.07682379,62.13143419,44.05921808,76.64175775,56.42622271,69.4648729,73.50011457,69.09070145,64.01001045,92.24611772,74.30389025,71.48474353,67.19219568,45.66494059,65.93982383,83.84624731,51.64621458,74.85431542,63.22230797,60.32625842,86.62157095,71.92293603,57.19007148,68.77682477,80.25406423,64.38230738,72.09997351) > 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/fisher/rcomp/tmp/11s0d1384787975.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/fisher/rcomp/tmp/270vr1384787975.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/fisher/rcomp/tmp/3gvwm1384787975.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/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/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/fisher/rcomp/tmp/4z5lj1384787975.tab") > > try(system("convert tmp/11s0d1384787975.ps tmp/11s0d1384787975.png",intern=TRUE)) character(0) > try(system("convert tmp/270vr1384787975.ps tmp/270vr1384787975.png",intern=TRUE)) character(0) > try(system("convert tmp/3gvwm1384787975.ps tmp/3gvwm1384787975.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.914 0.464 2.352