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(NA,65,NA,56,NA,NA,NA,NA,NA,NA,NA,55,52,68,56,63,61,61,57,66,58,61,63,56,67,75,68,59,61,62,62,55,54,64,66,62,50,71,54,53,50,64,77,55,58,56,66,59,55,56,57,63,54,60,55,55,55,62,55,61,55,52,62,50,56,61,57,60,53,59,59,56,57,47,45,51,53,53,47,44,50,54,59,56,51,59,57,54,52,55,75,64,53,55,52,51,59,51,44,55,59,50,49,NA,NA,41,52,45,45,55,51,47,NA,NA,NA,NA,NA,NA,75,67,83,95,93,101,107,98,87,89,91,85,70,61,86,90,94,86,101,83,77,73,100,80,74,70,71,75,80,67,124,80,66,68,91,81,70,71,73,65,86,82,76,76,66,66,63,77,84,68,82,78,71,75,68,66,76,68,70,86,64,69,79,64,70,73,58,71,56,68,61,70,64,76,77,69,76,73,58,75,67,58) > par1 = '10' > xlab = 'retwt' > main = 'score' > 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/1zrh21338545489.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/2glr71338545489.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/38mwa1338545489.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/4vizt1338545489.tab") > > try(system("convert tmp/1zrh21338545489.ps tmp/1zrh21338545489.png",intern=TRUE)) character(0) > try(system("convert tmp/2glr71338545489.ps tmp/2glr71338545489.png",intern=TRUE)) character(0) > try(system("convert tmp/38mwa1338545489.ps tmp/38mwa1338545489.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.150 0.296 1.441