R version 2.12.2 (2011-02-25) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: x86_64-redhat-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. Natural language support but running in an English locale 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. > y <- c(1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,2,2,2,2) > x <- c(-2.67,9.67,-6,28.33,12,-11.3,3,-5,2.33,7.5,5,30,15.33,-6.5,-7.33,-11,-8.33,9,2.33,-12.3,-2,1.33,-13,-5.67,-4,2) > par3 = '0' > par2 = 'TRUE' > par1 = '3' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: > #Technical description: > postscript(file="/var/www/wessaorg/rcomp/tmp/1f86i1306836750.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > par1 <- as.numeric(par1) > par2<- as.logical(par2) > par3<-as.numeric(par3) > if(par3>45){par3<-45;warning('trim limited to 45%')} > if(par3<0){par3<-0;warning('negative trim makes no sense. Trim is zero.')} > x1<-x[y==1] > y1<-y[y==1] > lotrm<-as.integer(length(x1)*par3/100) > hitrm<-as.integer(length(x1)*(100-par3)/100) > srt<-order(x1,y1) > trmx1<-x1[srt[lotrm:hitrm]] > trmy1<-y1[srt[lotrm:hitrm]] > x2<-x[y==2] > y2<-y[y==2] > lotrm<-as.integer(length(x2)*par3/100) > hitrm<-as.integer(length(x2)*(100-par3)/100) > srt<-order(x2,y2) > trmx2<-x2[srt[lotrm:hitrm]] > trmy2<-y2[srt[lotrm:hitrm]] > xtrm<-c(trmx1,trmx2) > ytrm<-c(trmy1,trmy2) > r<-boxplot(xtrm~as.factor(ytrm), col=par1, notch=par2, names =c('yes', 'no'), main='Reddy and Moores Placements Data', xlab='Placement Student', ylab='Degree Grade') Warning message: In bxp(list(stats = c(-11.3, -2.67, 5, 12, 30, -13, -8.33, -5.67, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > #Note: the /var/www/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/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,'Placement',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) > a<-table.row.start(a) > a<-table.element(a,'yes',1,TRUE) > for (j in 1:5) + { + a<-table.element(a,r$stats[j,1]) + } > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'no',1,TRUE) > for (j in 1:5) + { + a<-table.element(a,r$stats[j,2]) + } > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/wessaorg/rcomp/tmp/2k1gi1306836750.tab") > tr.mns<-tapply(x,y,mean, trim=par3/100) > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/trimmed_mean.htm','Trimmed Mean Equation','Trimmed Mean'),2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Placement') > a<-table.element(a,'No Placement') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,tr.mns[1]) > a<-table.element(a,tr.mns[2]) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/wessaorg/rcomp/tmp/3wtpe1306836750.tab") > > try(system("convert tmp/1f86i1306836750.ps tmp/1f86i1306836750.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.980 0.080 1.064