R version 2.15.3 (2013-03-01) -- "Security Blanket" Copyright (C) 2013 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(4.59511985 + ,4.543294782 + ,4.382026635 + ,4.248495242 + ,4.605170186 + ,4.691347882 + ,4.127134385 + ,4.394449155 + ,4.304065093 + ,4.795790546 + ,4.605170186 + ,4.290459441 + ,4.477336814 + ,4.465908119 + ,4.290459441 + ,4.17438727 + ,4.48863637 + ,4.454347296 + ,4.983606622 + ,4.672828834 + ,4.060443011 + ,4.48863637 + ,4.304065093 + ,4.990432587 + ,4.406719247 + ,4.510859507 + ,4.532599493 + ,4.875197323 + ,4.477336814 + ,4.672828834 + ,4.143134726 + ,4.905274778 + ,4.304065093 + ,4.406719247 + ,4.262679877 + ,4.828313737 + ,4.189654742 + ,4.442651256 + ,4.521788577 + ,4.304065093 + ,4.477336814 + ,4.127134385 + ,4.510859507 + ,4.59511985 + ,4.795790546 + ,4.564348191 + ,4.553876892 + ,4.615120517 + ,4.465908119 + ,4.369447852 + ,4.219507705 + ,4.624972813 + ,4.553876892 + ,4.356708827 + ,4.762173935 + ,4.564348191 + ,4.532599493 + ,4.110873864 + ,4.110873864 + ,4.382026635 + ,4.394449155 + ,4.369447852 + ,4.406719247 + ,4.718498871 + ,4.624972813 + ,4.543294782 + ,4.59511985 + ,4.317488114 + ,4.905274778 + ,4.394449155 + ,4.356708827 + ,4.624972813 + ,4.454347296 + ,4.418840608 + ,4.709530201 + ,4.276666119 + ,4.454347296 + ,4.615120517 + ,4.382026635 + ,4.709530201 + ,4.343805422 + ,4.430816799 + ,4.418840608 + ,4.17438727 + ,4.605170186 + ,4.521788577 + ,4.663439094 + ,4.248495242 + ,4.49980967 + ,4.510859507 + ,4.59511985 + ,4.770684624 + ,4.189654742 + ,4.343805422 + ,4.430816799 + ,4.615120517 + ,4.158883083 + ,4.477336814 + ,4.418840608 + ,4.65396035 + ,4.844187086 + ,4.356708827 + ,4.248495242 + ,4.691347882 + ,4.644390899 + ,4.454347296 + ,4.574710979) > par1 = '10' > xlab = 'symptoms' > main = 'Stress study' > 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/1n0cw1369219261.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/2gxqg1369219261.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/3pkzd1369219261.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/4kawh1369219261.tab") > > try(system("convert tmp/1n0cw1369219261.ps tmp/1n0cw1369219261.png",intern=TRUE)) character(0) > try(system("convert tmp/2gxqg1369219261.ps tmp/2gxqg1369219261.png",intern=TRUE)) character(0) > try(system("convert tmp/3pkzd1369219261.ps tmp/3pkzd1369219261.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.756 0.346 2.089