R version 2.8.1 (2008-12-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(5560 + ,4085 + ,1209 + ,266 + ,3922 + ,2686 + ,1036 + ,200 + ,3759 + ,2545 + ,1084 + ,130 + ,4138 + ,3071 + ,926 + ,141 + ,4634 + ,3388 + ,1083 + ,163 + ,3996 + ,2652 + ,912 + ,432 + ,4308 + ,3190 + ,910 + ,208 + ,4143 + ,2885 + ,886 + ,372 + ,4429 + ,3295 + ,948 + ,186 + ,5219 + ,3818 + ,1134 + ,267 + ,4929 + ,3226 + ,1226 + ,477 + ,5755 + ,3953 + ,1516 + ,286 + ,5592 + ,3810 + ,1491 + ,291 + ,4163 + ,2877 + ,1086 + ,200 + ,4962 + ,3515 + ,1274 + ,173 + ,5208 + ,3708 + ,1164 + ,336 + ,4755 + ,3450 + ,1205 + ,100 + ,4491 + ,3360 + ,966 + ,165 + ,5732 + ,4110 + ,1462 + ,160 + ,5731 + ,4385 + ,1134 + ,212 + ,5040 + ,3729 + ,1157 + ,154 + ,6102 + ,4309 + ,1676 + ,117 + ,4904 + ,3506 + ,1168 + ,230 + ,5369 + ,3690 + ,1492 + ,187 + ,5578 + ,3911 + ,1413 + ,254 + ,4619 + ,2952 + ,1287 + ,380 + ,4731 + ,3324 + ,1206 + ,201 + ,5011 + ,3417 + ,1054 + ,540 + ,5299 + ,3498 + ,1237 + ,564 + ,4146 + ,2770 + ,1070 + ,306 + ,4625 + ,2907 + ,1264 + ,454 + ,4736 + ,3179 + ,1319 + ,238 + ,4219 + ,3014 + ,1095 + ,110 + ,5116 + ,3483 + ,1497 + ,136 + ,4205 + ,3016 + ,1136 + ,53 + ,4121 + ,2617 + ,1343 + ,161 + ,5103 + ,3534 + ,1343 + ,226 + ,4300 + ,2849 + ,1283 + ,168 + ,4578 + ,3129 + ,1307 + ,142 + ,3809 + ,2578 + ,913 + ,318 + ,5526 + ,3626 + ,1396 + ,504 + ,4247 + ,2813 + ,1186 + ,248 + ,3830 + ,2591 + ,1021 + ,218 + ,4394 + ,2890 + ,1250 + ,254 + ,4826 + ,3369 + ,1248 + ,209 + ,4409 + ,2926 + ,1305 + ,178 + ,4569 + ,3016 + ,1511 + ,42 + ,4106 + ,2878 + ,1103 + ,124 + ,4794 + ,3198 + ,1322 + ,274 + ,3914 + ,2560 + ,1153 + ,201 + ,3793 + ,2573 + ,1096 + ,125 + ,4405 + ,3121 + ,1106 + ,178 + ,4022 + ,2658 + ,1249 + ,115 + ,4100 + ,2869 + ,1016 + ,216 + ,4788 + ,3076 + ,1076 + ,637 + ,3163 + ,2168 + ,939 + ,56 + ,3585 + ,2341 + ,928 + ,316 + ,3903 + ,2570 + ,1142 + ,191 + ,4178 + ,2626 + ,1019 + ,533 + ,3863 + ,2490 + ,978 + ,396 + ,4187 + ,2756 + ,1327 + ,104) + ,dim=c(4 + ,61) + ,dimnames=list(c('Belgė' + ,'VL' + ,'Wal' + ,'Brus') + ,1:61)) > y <- array(NA,dim=c(4,61),dimnames=list(c('Belgė','VL','Wal','Brus'),1:61)) > 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 = 'value' > xlab = 'variables' > main = 'Notched Boxplots' > z <- as.data.frame(t(y)) > postscript(file="/var/www/rcomp/tmp/1pw901258044516.ps",horizontal=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] [,2] [,3] [,4] [1,] 3163 2168 886 42 [2,] 4138 2770 1070 160 [3,] 4491 3076 1164 208 [4,] 5011 3498 1305 291 [5,] 6102 4385 1516 477 $n [1] 61 61 61 61 $conf [,1] [,2] [,3] [,4] [1,] 4314.394 2928.727 1116.46 181.4989 [2,] 4667.606 3223.273 1211.54 234.5011 $out [1] 1676 540 564 504 637 533 $group [1] 3 4 4 4 4 4 $names [1] "Belg\353" "VL" "Wal" "Brus" > dev.off() null device 1 > > #Note: the /var/www/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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/www/rcomp/tmp/2vinz1258044516.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/www/rcomp/tmp/3jkdc1258044516.tab") > > system("convert tmp/1pw901258044516.ps tmp/1pw901258044516.png") > > > proc.time() user system elapsed 0.40 0.33 0.63