R version 2.9.0 (2009-04-17) Copyright (C) 2009 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. > 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,2,2) > x <- c(24,21,18,16,16,18,18,13,22,16,18,16,14,8,10,12,10,17,10,8,16,16,18,21,13,8,14,18) > par3 = '0' > par2 = 'FALSE' > 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, Histogram and QQplot (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/Ian.Holliday/rwasp_varia1.wasp/ > #Source of accompanying publication: > #Technical description: > postscript(file="/var/www/html/rcomp/tmp/1z40r1268915570.ps",horizontal=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') > dev.off() null device 1 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > 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,'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.save(a,file="/var/www/html/rcomp/tmp/204pk1268915570.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'),6,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/html/rcomp/tmp/3hd9v1268915570.tab") > > try(system("convert tmp/1z40r1268915570.ps tmp/1z40r1268915570.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 0.387 0.172 0.490