R version 2.6.0 (2007-10-03) Copyright (C) 2007 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(2.074996377 + ,2.293994811 + ,-1.892018822 + ,153.6755174 + ,117.7565127 + ,1.235760721 + ,103.4196238 + ,124.0593836 + ,0.563031786 + ,216.1898032 + ,-57.63118383 + ,-1.681777069 + ,335.3820105 + ,-148.4807117 + ,0.409391642 + ,463.3705437 + ,2.067407253 + ,-1.163771183 + ,-382.8200703 + ,302.1252747 + ,0.273844923 + ,-186.9031405 + ,308.9934276 + ,0.419261998 + ,-303.4154138 + ,7.711016284 + ,0.142069989 + ,238.6742901 + ,-53.06218801 + ,-1.616052502 + ,176.0761762 + ,-215.8121082 + ,0.69356418 + ,96.57783568 + ,-179.2793928 + ,0.368288103 + ,95.33921883 + ,-36.66712334 + ,1.277297206 + ,216.6037348 + ,-7.308481737 + ,-1.42554929 + ,274.9607427 + ,-133.1500993 + ,2.687348328 + ,-244.1681739 + ,93.76314183 + ,0.117391693 + ,354.9893264 + ,206.619249 + ,0.100325687 + ,-17.81939426 + ,-229.5349296 + ,1.041133291 + ,-12.85380621 + ,259.0708568 + ,1.723122897 + ,943.6989083 + ,-99.58126552 + ,-1.393957144 + ,-472.6073813 + ,269.9669353 + ,0.954507778 + ,-100.888253 + ,48.91481502 + ,1.872948154 + ,-304.0164742 + ,-29.12063 + ,-2.215147469 + ,275.0929878 + ,-61.5094603 + ,-1.926013968 + ,50.20149727 + ,57.5987677 + ,1.104353558 + ,-30.68259605 + ,-327.2439788 + ,0.582607051 + ,-399.52372 + ,-50.22952022 + ,0.89288225 + ,-171.4074482 + ,-13.61930104 + ,0.384912275 + ,-4.339155562 + ,163.6860018 + ,-2.405751477 + ,100.9903684 + ,18.89331263 + ,-0.145150523 + ,-45.12506111 + ,106.4302721 + ,-0.56354464 + ,60.52427221 + ,-70.56844503 + ,-1.252593096 + ,150.9095456 + ,-12.83994858 + ,-0.323909682 + ,405.3066564 + ,6.97089635 + ,-2.902829867 + ,-65.48005392 + ,-167.8275625 + ,-1.154904595 + ,-103.4874919 + ,-85.94257367 + ,0.308168949 + ,-130.7373627 + ,50.78900794 + ,-0.189829183 + ,-57.03483193 + ,-117.6915576 + ,2.175477764 + ,-145.5754633 + ,-155.6069484 + ,0.777371211 + ,253.0943148 + ,46.73153252 + ,-0.027873566 + ,28.20610726 + ,-286.1272517 + ,1.082335914 + ,24.63196686 + ,-17.53192217 + ,-1.72111969 + ,607.7026379 + ,137.8713085 + ,1.617255615 + ,-0.307703691 + ,-115.515968 + ,-0.611267443 + ,95.49117344 + ,-126.7975933 + ,-2.651404008 + ,644.3581066 + ,-186.4451633 + ,-3.44540633 + ,190.4962992 + ,24.28894823 + ,-0.668921862 + ,-221.7566749 + ,80.13347931 + ,0.817370596 + ,-140.3691816 + ,-238.2445942 + ,1.258840183) + ,dim=c(3 + ,49) + ,dimnames=list(c('Huwelijken' + ,'Echtscheidingen' + ,'Fin.situatie') + ,1:49)) > y <- array(NA,dim=c(3,49),dimnames=list(c('Huwelijken','Echtscheidingen','Fin.situatie'),1:49)) > 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' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Notched Boxplots (v1.0.4) 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 > #Technical description: Write here your technical program description > z <- as.data.frame(t(y)) > postscript(file="/var/www/html/rcomp/tmp/1kzjs1197396085.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] [1,] -472.60738 -327.24398 -3.4454063 [2,] -103.48749 -117.69156 -1.2525931 [3,] 28.20611 -13.61930 0.1420700 [4,] 216.18980 57.59877 0.8928822 [5,] 644.35811 308.99343 2.6873483 $n [1] 49 49 49 $conf [,1] [,2] [,3] [1,] -43.94963 -53.18483 -0.3421944 [2,] 100.36184 25.94623 0.6263344 $out [1] 943.699 $group [1] 1 $names [1] "Huwelijken" "Echtscheidingen" "Fin.situatie" > dev.off() null device 1 > load(file='/var/www/html/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/html/rcomp/tmp/25hzw1197396085.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/html/rcomp/tmp/3go0u1197396085.tab") > > system("convert tmp/1kzjs1197396085.ps tmp/1kzjs1197396085.png") > > > proc.time() user system elapsed 0.629 0.167 0.717