R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 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 <- array(list(611.22 + ,613.36 + ,592.49 + ,528.18 + ,525.3 + ,474 + ,485 + ,510 + ,523.54 + ,525 + ,516.6 + ,526.31 + ,535 + ,545.7 + ,525.25 + ,526.42 + ,576.2 + ,593 + ,582.07 + ,570.22 + ,572.8 + ,600.55 + ,610 + ,620.03 + ,623.34 + ,610.16 + ,603.6 + ,607.57 + ,626.06 + ,614.8 + ,596.48 + ,632.05 + ,628.01 + ,621.88 + ,627.64 + ,579.37 + ,587.76 + ,608 + ,593.32 + ,595.09 + ,586.72 + ,583.72 + ,525.18 + ,509.85 + ,527.25 + ,540.35 + ,517.96 + ,510.8 + ,534.56 + ,504 + ,553.43 + ,562.98 + ,582.54 + ,650.02 + ,624.99 + ,585.99 + ,579.98 + ,599.33 + ,605.91 + ,604.64 + ,609.90 + ,621.25 + ,600.25 + ,625.04 + ,642.59 + ,641.24 + ,632.32 + ,624.60 + ,596.06 + ,614.98 + ,596.97 + ,605.23 + ,600.40 + ,591.53 + ,570.98 + ,580.45 + ,564.51 + ,571.48 + ,580.07 + ,585.98 + ,576.52 + ,610.82 + ,634.96 + ,641.33 + ,642.00 + ,677.14 + ,678.63 + ,685.09 + ,706.15 + ,709.68 + ,733.99 + ,754.50 + ,767.65 + ,744.75 + ,681.79 + ,675.15 + ,687.92 + ,687.92 + ,663.03 + ,647.18 + ,667.97 + ,698.37 + ,684.21 + ,701.96 + ,715.63 + ,700.01 + ,737.97 + ,739.99 + ,704.51 + ,753.67 + ,775.60 + ,785.37 + ,792.89 + ,799.71 + ,806.19 + ,831.52 + ,814.30 + ,810.31 + ,794.19 + ,783.05 + ,790.05 + ,799.87 + ,801.42 + ,845.72 + ,880.23 + ,909.18 + ,873.32 + ,871.22 + ,879.73 + ,875.04 + ,880.93 + ,880.37 + ,893.49 + ,923.00 + ,896.60 + ,885.35 + ,906.57 + ,890.41 + ,856.91 + ,870.21 + ,846.90 + ,879.58 + ,889.07 + ,903.11 + ,876.39 + ,872.35 + ,871.99 + ,1011.41 + ,1015.20 + ,1027.04 + ,1016.03 + ,1033.56 + ,1031.89 + ,1059.59 + ,1069.87 + ,1060.79 + ,1100.62 + ,1118.40 + ,1105.00) + ,dim=c(1 + ,159) + ,dimnames=list(c('A') + ,1:159)) > y <- array(NA,dim=c(1,159),dimnames=list(c('A'),1:159)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par1 = 'grey' > ylab = 'Price' > xlab = '' > main = 'Notched Boxplots Aandeel prijs Google' > par1 <- 'grey' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Notched Boxplots (v1.0.6) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_notchedbox1.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > z <- as.data.frame(t(y)) > postscript(file="/var/wessaorg/rcomp/tmp/1q5ob1392579012.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > (r<-boxplot(z ,xlab=xlab,ylab=ylab,main=main,notch=TRUE,col=par1)) $stats [,1] [1,] 474.000 [2,] 587.240 [3,] 634.960 [4,] 803.805 [5,] 1118.400 $n [1] 159 $conf [,1] [1,] 607.8239 [2,] 662.0961 $out numeric(0) $group numeric(0) $names [1] "A" > 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,hyperlink('http://www.xycoon.com/overview.htm','Boxplot statistics','Boxplot overview'),6,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_whisker.htm','lower whisker','definition of lower whisker'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/lower_hinge.htm','lower hinge','definition of lower hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/central_tendency.htm','median','definitions about measures of central tendency'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_hinge.htm','upper hinge','definition of upper hinge'),1,TRUE) > a<-table.element(a,hyperlink('http://www.xycoon.com/upper_whisker.htm','upper whisker','definition of upper whisker'),1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + for (j in 1:5) + { + a<-table.element(a,r$stats[j,i]) + } + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/2i9hp1392579012.tab") > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Boxplot Notches',4,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Variable',1,TRUE) > a<-table.element(a,'lower bound',1,TRUE) > a<-table.element(a,'median',1,TRUE) > a<-table.element(a,'upper bound',1,TRUE) > a<-table.row.end(a) > for (i in 1:length(y[,1])) + { + a<-table.row.start(a) + a<-table.element(a,dimnames(t(x))[[2]][i],1,TRUE) + a<-table.element(a,r$conf[1,i]) + a<-table.element(a,r$stats[3,i]) + a<-table.element(a,r$conf[2,i]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/3mgwv1392579012.tab") > > try(system("convert tmp/1q5ob1392579012.ps tmp/1q5ob1392579012.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.882 0.479 2.333