R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-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(1747,1245,1182,958,1000,1044,875,939,736,905,796,372,1326,668,962,912,1119,891,931,1047,982,1098,714,128,1784,828,1199,1095,977,1338,975,840,1324,1236,883,177,2186,809,1434,1365,1247,1476,1211,990,1205,1238,952,204,2135,1157,1290,1071,1169,1431,945,1034,1100,1297,921,236,1990,966,1326,908,1206,1861,929,1296,1332,1352,1040,148,14354,2090,1435,1124,1319,1436,1774,1566,1385,1147,1274,625,52,15227,1990,1154,954,887,825,966,954,770,1838,1371,589,116,12414,1898,712,1175,1240,1329,1550,1201,938,1030,1060,1035,635,2565,910,1304,1331,1681,1983,1021,1061,1292,1274,1024,568,2570,1125,1600,1492,2492,3523,990,869,1310,979,1244,442,2956,1055,2004,1462,1144,1454,1538,1388,1547,1570,1535,1352,1888,999,1158,4045,1342,1443,1519,4304,1267,1454,987,3708,1430,1254,734,3418,15475),dim=c(1,164),dimnames=list(c('V1'),1:164)) > y <- array(NA,dim=c(1,164),dimnames=list(c('V1'),1:164)) > 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 = 'Aantal verkocht' > xlab = 'Periode' > main = 'Verkoop BMW' > 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/1pt6g1444212430.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=13.888888888889,height=13.888888888889) > (r<-boxplot(z ,xlab=xlab,ylab=ylab,main=main,notch=TRUE,col=par1)) $stats [,1] [1,] 236.0 [2,] 954.0 [3,] 1200.0 [4,] 1448.5 [5,] 2186.0 $n [1] 164 $conf [,1] [1,] 1138.99 [2,] 1261.01 $out [1] 128 177 204 148 14354 52 15227 116 12414 2565 2570 2492 [13] 3523 2956 4045 4304 3708 3418 15475 $group [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 $names [1] "V1" > 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/2yv8u1444212430.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/3x45n1444212430.tab") > > try(system("convert tmp/1pt6g1444212430.ps tmp/1pt6g1444212430.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.768 0.132 0.895