R version 2.13.0 (2011-04-13) Copyright (C) 2011 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(6.6 + ,4.2 + ,5 + ,26.7 + ,6.5 + ,3.2 + ,8.1 + ,11.3 + ,5 + ,5 + ,27.1 + ,5.4 + ,13.5 + ,6.5 + ,8.25 + ,5.6 + ,12.5 + ,10.4 + ,10.5 + ,13.5 + ,10.4 + ,5.5 + ,12 + ,11.2 + ,12.5 + ,80 + ,3.2 + ,5.6 + ,16.2 + ,24 + ,10 + ,20.5 + ,10.5 + ,14.5 + ,74.74 + ,11 + ,14.5 + ,5.5 + ,12 + ,7.2 + ,5.2 + ,3.2 + ,5.5 + ,18 + ,28 + ,2.6 + ,2.6 + ,5.2 + ,7.7 + ,5.3 + ,13.2 + ,21.5 + ,4.6 + ,5.6 + ,4.5 + ,11.97 + ,7.8 + ,13.8 + ,15.05 + ,17.8 + ,15 + ,30 + ,8 + ,7.8 + ,5.6 + ,9.5 + ,10.4 + ,7.6 + ,8.8 + ,10.4 + ,10.8 + ,20 + ,10.4 + ,22 + ,3.6 + ,11.5 + ,7.5 + ,8.2 + ,4.2 + ,3.2 + ,10.5 + ,20 + ,4.2 + ,8.5 + ,10.2 + ,7 + ,3.5 + ,10 + ,3.4 + ,3.2 + ,6.4 + ,7.8 + ,12.6 + ,2.4 + ,13 + ,24.3 + ,3.4 + ,2.6 + ,3.4 + ,5 + ,3.4 + ,8.4 + ,5.2 + ,10.6 + ,10 + ,7.8 + ,5.8 + ,5.6 + ,5.8 + ,6.4 + ,12.2 + ,3.05 + ,22 + ,16 + ,2.8 + ,5.5 + ,3.2 + ,8 + ,17.9 + ,5.2 + ,8.5 + ,5.5 + ,8.2 + ,21.6 + ,5.5 + ,8.5 + ,27.54 + ,7.3 + ,5.2 + ,5.2 + ,29.33 + ,20 + ,16 + ,18.85 + ,4.2 + ,8.5 + ,8.5 + ,14 + ,8.2 + ,5.58 + ,9.8 + ,5.2 + ,4.4 + ,20 + ,8.4 + ,10.4 + ,8 + ,14.4 + ,6.6 + ,18 + ,11 + ,12 + ,15.8 + ,12.5 + ,20.58 + ,35 + ,12.5 + ,13 + ,13.59 + ,7.95 + ,7.95 + ,7.5 + ,3.61 + ,9.6 + ,17.1 + ,8.5 + ,6 + ,6 + ,45 + ,2.75 + ,34 + ,2.7 + ,4.5 + ,12 + ,13.5 + ,14.5 + ,5.5 + ,11.55 + ,50 + ,8.5 + ,8.5 + ,7.5 + ,13.5 + ,5.5 + ,7.2 + ,5.5 + ,15 + ,5.7 + ,2.75 + ,12.75 + ,2.6 + ,5.5 + ,2.6 + ,4.4 + ,14.6 + ,10 + ,45 + ,2.65 + ,26 + ,10.5 + ,22 + ,35 + ,16.1 + ,14 + ,7 + ,11.5 + ,11.15 + ,34.5 + ,4 + ,5.5 + ,10.2 + ,8.4 + ,7.5 + ,2.8 + ,6.5 + ,27 + ,11 + ,3.2 + ,14.3 + ,7.5 + ,14.5 + ,2.75 + ,8.8 + ,12 + ,23 + ,5.65 + ,11.8 + ,5.7 + ,11.15 + ,19.5 + ,2.75 + ,17 + ,14.05 + ,2.75 + ,8.25 + ,20.3 + ,2.75 + ,2.75 + ,8.4 + ,13 + ,12 + ,1.8 + ,7.84 + ,4.5 + ,5.72 + ,16.4 + ,8.5 + ,6 + ,3 + ,5.8 + ,11.6 + ,5.5 + ,16.1 + ,3.5 + ,15 + ,3 + ,12 + ,3 + ,12.65 + ,12 + ,8.8 + ,11.98 + ,6 + ,9 + ,18 + ,10.8 + ,6 + ,9 + ,23 + ,8.48 + ,6.4 + ,6.6 + ,13.8 + ,64.8 + ,10 + ,4 + ,10 + ,2.8 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,7.5 + ,4 + ,3.3 + ,11.15 + ,10.2 + ,8.5 + ,9.45 + ,19.8 + ,3.5 + ,10.05 + ,3.35 + ,3.4 + ,2.2 + ,17.5 + ,6.5 + ,4.5 + ,10.2 + ,6.25 + ,1.2 + ,20.2 + ,4.45 + ,4.45 + ,11.6 + ,6.6 + ,8.1 + ,5.2 + ,17.6 + ,8.2 + ,4.6 + ,3 + ,3 + ,30 + ,8.4 + ,50.45 + ,3.4 + ,2.4 + ,5.5 + ,4.75 + ,6.9) > par1 = '10' > xlab = 'Expense' > main = 'Interesting Data' > 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/1u5b01341253034.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/2yqm81341253034.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/35fgd1341253034.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/4iuea1341253034.tab") > > try(system("convert tmp/1u5b01341253034.ps tmp/1u5b01341253034.png",intern=TRUE)) character(0) > try(system("convert tmp/2yqm81341253034.ps tmp/2yqm81341253034.png",intern=TRUE)) character(0) > try(system("convert tmp/35fgd1341253034.ps tmp/35fgd1341253034.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.090 0.447 2.523