x <- array(list(36.33
,3.00
,37.93
,4.33
,41.87
,6.33
,47.20
,43.67
,51.53
,44.00
,52.33
,47.00
,53.87
,47.00
,55.00
,47.00
,55.07
,48.33
,55.47
,49.00
,55.93
,49.33
,56.20
,49.67
,56.67
,51.00
,57.13
,51.00
,57.47
,51.00
,57.47
,51.00
,57.67
,52.67
,57.87
,53.33
,58.07
,53.67
,58.20
,53.67
,58.27
,54.00
,58.27
,54.00
,58.33
,54.33
,58.40
,54.33
,58.80
,54.67
,58.80
,54.67
,58.93
,54.67
,59.00
,55.00
,59.13
,55.00
,59.40
,55.33
,59.47
,55.33
,59.53
,55.33
,59.53
,55.67
,59.60
,55.67
,59.67
,56.00
,59.67
,56.00
,59.73
,56.00
,59.73
,56.33
,59.73
,56.33
,59.80
,56.67
,59.80
,56.67
,60.13
,56.67
,60.13
,56.67
,60.13
,57.00
,60.33
,57.33
,60.47
,57.33
,60.73
,57.67
,60.80
,57.67
,60.87
,58.00
,61.00
,58.00
,61.27
,58.00
,61.27
,58.00
,61.33
,58.00
,61.40
,58.00
,61.47
,58.00
,61.47
,58.00
,61.60
,58.33
,61.60
,58.33
,61.67
,58.67
,61.80
,58.67
,61.93
,58.67
,62.13
,58.67
,62.20
,58.67
,62.40
,58.67
,62.40
,58.67
,62.40
,59.00
,62.53
,59.00
,62.60
,59.33
,62.60
,59.33
,62.60
,59.33
,62.67
,59.33
,62.80
,59.33
,62.80
,59.67
,62.80
,59.67
,62.87
,59.67
,62.87
,59.67
,62.93
,59.67
,63.00
,59.67
,63.00
,60.00
,63.13
,60.00
,63.33
,60.00
,63.33
,60.00
,63.47
,60.00
,63.53
,60.00
,63.53
,60.00
,63.53
,60.00
,63.60
,60.00
,63.67
,60.33
,63.67
,60.33
,63.73
,60.33
,63.73
,60.33
,63.73
,60.33
,63.87
,60.33
,64.00
,60.67
,64.07
,60.67
,64.07
,60.67
,64.13
,60.67
,64.20
,60.67
,64.20
,61.00
,64.27
,61.00
,64.60
,61.00
,64.60
,61.00
,64.67
,61.00
,64.67
,61.00
,64.67
,61.33
,64.67
,61.33
,64.67
,61.33
,64.67
,61.33
,64.73
,61.33
,64.80
,61.33
,64.87
,61.33
,65.00
,61.67
,65.07
,61.67
,65.07
,61.67
,65.20
,61.67
,65.47
,61.67
,65.47
,61.67
,65.60
,61.67
,65.67
,61.67
,65.67
,62.00
,65.80
,62.00
,65.80
,62.00
,65.80
,62.00
,65.93
,62.00
,66.00
,62.00
,66.00
,62.33
,66.00
,62.33
,66.00
,62.33
,66.00
,62.33
,66.00
,62.67
,66.00
,63.00
,66.07
,63.00
,66.27
,63.00
,66.27
,63.33
,66.47
,63.33
,66.53
,63.33
,66.53
,63.33
,66.53
,63.33
,66.60
,63.67
,66.73
,63.67
,66.73
,63.67
,66.73
,63.67
,66.73
,63.67
,66.80
,63.67
,66.87
,63.67
,66.93
,63.67
,67.07
,63.67
,67.13
,64.00
,67.33
,64.00
,67.47
,64.00
,67.47
,64.00
,67.53
,64.00
,67.60
,64.00
,67.60
,64.00
,67.80
,64.00
,68.07
,64.33
,68.60
,64.33
,68.67
,64.67
,68.67
,64.67
,68.73
,64.67
,68.80
,64.67
,68.80
,65.00
,68.87
,65.00
,69.53
,65.00
,69.60
,65.33
,69.60
,65.33
,69.87
,65.67
,69.93
,65.67
,70.07
,65.67
,70.07
,65.67
,70.47
,65.67
,70.67
,66.00
,70.67
,66.00
,70.73
,66.00
,70.73
,66.00
,70.73
,66.33
,70.73
,66.33
,70.80
,66.67
,70.80
,66.67
,71.07
,66.67
,71.47
,66.67
,71.53
,67.33
,71.67
,67.67
,71.67
,68.00
,72.07
,68.67
,72.73
,69.00
,72.73
,70.00
,72.87
,70.33
,73.00
,71.33)
,dim=c(2
,189)
,dimnames=list(c('placement'
,'noplacement')
,1:189))
 y <- array(NA,dim=c(2,189),dimnames=list(c('placement','noplacement'),1:189))
 for (i in 1:dim(x)[1])
 {
 	for (j in 1:dim(x)[2])
 	{
 		y[i,j] <- as.numeric(x[i,j])
 	}
 }
par3 = '0'
par2 = 'FALSE'
par1 = '3'
ylab = 'Scores'
xlab = 'Placement?'
main = 'Placement Effect on scores'
par3 <- '0'
par2 <- 'FALSE'
par1 <- '3'
#'GNU S' R Code compiled by R2WASP v. 1.2.291 ()
#Author: aston2
#To cite this work: Ian E. Holliday, 2012, CARE Boxplots and Scatterplot Matrix (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_CARE%20Data%20Boxplot.wasp/
#Source of accompanying publication: 
#
par1 <- as.numeric(par1) #colour
par2<- as.logical(par2) # Notches ?
par3<-as.numeric(par3) # % trim
if(par3>45){par3<-45;warning('trim limited to 45%')}
if(par3<0){par3<-0;warning('negative trim makes no sense. Trim is zero.')}
lotrm<-as.integer(length(y[1,])*par3/100)+1
hitrm<-as.integer(length(y[1,])*(100-par3)/100)
y1<-array(dim=c(dim(y)[1], hitrm-lotrm+1), dimnames=list(dimnames(y)[[1]], 1:(hitrm-lotrm+1) ))
for(i in 1:dim(y)[1]){
tmp<-order(y[i,])
y1[i,]<- y[i, tmp[lotrm:hitrm] ]
}
postscript(file="/var/fisher/rcomp/tmp/1c2kx1350852011.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) 
pairs(t(y))
dev.off()
y<-y1
z <- as.data.frame(t(y))
postscript(file="/var/fisher/rcomp/tmp/2o5621350852011.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=par2,col=par1))
dev.off()

#Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab
load(file="/var/fisher/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,signif(r$stats[j,i], digits=4))
}
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file="/var/fisher/rcomp/tmp/3jwmq1350852011.tab") 
if (par2){
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,signif(r$conf[1,i], digits=4))
a<-table.element(a, signif(r$stats[3,i], digits=4))
a<-table.element(a,signif(r$conf[2,i], digits=4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file="/var/fisher/rcomp/tmp/4d2ov1350852011.tab") 
}
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Boxplot Means',4,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/trimmed_mean.htm','trimmed mean','definition of trimmed mean'),1,TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/unbiased1.htm','unbiased SD','definition of unbiased SD'),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,signif(mean(z[i], trim=par3/100, na.rm=TRUE), digits=4))
a<-table.element(a,signif(sd(z[i], na.rm=TRUE), digits=4))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file="/var/fisher/rcomp/tmp/57rnq1350852011.tab") 

try(system("convert tmp/1c2kx1350852011.ps tmp/1c2kx1350852011.png",intern=TRUE))
try(system("convert tmp/2o5621350852011.ps tmp/2o5621350852011.png",intern=TRUE))

