R version 3.0.3 (2014-03-06) -- "Warm Puppy" Copyright (C) 2014 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(60.4,64.8,89,74,64.8,53.4,53.4,67.2,35.2,66,20.2,80.8,16,67.2,72.2,64.2,71,70.4,49.8,53.4,52.8,49.6,66.6,56,43.2,75.8,76.4,70.4,66,67.8,63.6,82,63.4,65.4,71,74.6,73.4,70.4,56.6,71.6,75.8,75.2,47,79.6,55.2,73.4,80.8,75.8,71.6,87.2,75.2,53.4,74,71,72.2,28,75.8,65.4,75.2,79.6,71.6,76.4,87.2,47.6,0,65.4,49.6,68.6,61,68,68,67.8,64.8,67.8,86.6,69.8,72.2,82.6,38,74.6,75.8,77.6,61,59,70.4,69.8,88.4,69.2,66,69.8,75.8,71.6,15.8,62.6,51.4,65.4,67.8,76.4,65.4,89,67.8,66.6,64.2,36,30.6,54.6,69.8,65.4,55.4,71.6,66,87.2,88.4,80.8,70.4,56.6,67.8,70.4,68.4,58.6,53.4,65.4,65.4,0,66,62.2,50,76.4,66.6,66.6,69.6,58.6,55.8,55,67.2,49.8,70.4,64.2,77,45.4,77,81.4,67.2,69,71.6,75.2,83.2,80.2,42,54.8,71,71,60.4,71.6,64.8,62.2,66,72.2,69,68.4) > 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/1oi6x1395053595.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/2lusd1395053595.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/3dswg1395053595.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/4bdy61395053595.tab") > > try(system("convert tmp/1oi6x1395053595.ps tmp/1oi6x1395053595.png",intern=TRUE)) character(0) > try(system("convert tmp/2lusd1395053595.ps tmp/2lusd1395053595.png",intern=TRUE)) character(0) > try(system("convert tmp/3dswg1395053595.ps tmp/3dswg1395053595.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.566 0.532 3.116