R version 2.12.1 (2010-12-16) Copyright (C) 2010 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(39.12448,33.0798,53.45432,53.1487,30.87978,46.44731,53.47016,52.68011,55.75793,59.17661,43.60416,19.25811,54.70652,46.16678,61.80364,51.6503,54.31479,57.96348,59.037,57.81371,49.19084,46.67529,50.9092,33.87344,66.36902,46.6383,36.99759,50.32119,49.19435,56.88627,63.30752,41.7377,60.05671,51.22368,33.19752,42.01993,37.40613,60.69045,45.19376,42.82525,39.73621,58.79602,51.30244,47.78152,47.46399,43.02434,58.01858,43.93111,48.9974,42.11096,58.99042,54.60322,42.32016,53.66529,41.89467,58.5597,59.02196,53.58498,53.75636,65.21254,41.14882,48.07883,38.1637,33.14679,33.35573,50.96306,41.26001,46.59853,40.74395,33.60979,54.86365,51.8094,48.59293,55.49863,57.77813,45.44277,49.54784,50.12593,55.10592,39.95971,55.93567,35.39927,53.1346,39.768,40.38378,53.71358,44.93907,54.81885,54.77115,75.2662,62.4517,46.69103,30.33013,45.64357,39.94453,66.33093,58.58105,46.27558,72.6433,36.12574) > par1 = '5' > xlab = 'Survey Score' > main = 'Maternal IQ' > postscript(file="/var/www/rcomp/tmp/1gh1t1317921919.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) > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/2mqxi1317921919.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/www/rcomp/tmp/3mrxd1317921919.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(density(x), xlab=xlab) > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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,mean(x)) > 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,sd(x)) > 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/www/rcomp/tmp/47ccp1317921919.tab") > > try(system("convert tmp/1gh1t1317921919.ps tmp/1gh1t1317921919.png",intern=TRUE)) character(0) > try(system("convert tmp/2mqxi1317921919.ps tmp/2mqxi1317921919.png",intern=TRUE)) character(0) > try(system("convert tmp/3mrxd1317921919.ps tmp/3mrxd1317921919.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.152 0.260 1.384