R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-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. 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(4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,7 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,5 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,4 + ,'SMK' + ,'hot' + ,6 + ,'SMK' + ,'hot' + ,2 + ,'SMK' + ,'hot' + ,3 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,1 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,7 + ,'SMK' + ,'mild' + ,4 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,5 + ,'SMK' + ,'mild' + ,3 + ,'SMK' + ,'mild' + ,6 + ,'SMK' + ,'mild' + ,2 + ,'SMK' + ,'mild' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,6 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,5 + ,'NS' + ,'hot' + ,11 + ,'NS' + ,'hot' + ,7 + ,'NS' + ,'hot' + ,8 + ,'NS' + ,'hot' + ,10 + ,'NS' + ,'hot' + ,9 + ,'NS' + ,'hot' + ,3 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,1 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild' + ,5 + ,'NS' + ,'mild' + ,4 + ,'NS' + ,'mild' + ,3 + ,'NS' + ,'mild' + ,6 + ,'NS' + ,'mild' + ,2 + ,'NS' + ,'mild') + ,dim=c(3 + ,80) + ,dimnames=list(c('rate' + ,'status' + ,'curry') + ,1:80)) > y <- array(NA,dim=c(3,80),dimnames=list(c('rate','status','curry'),1:80)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } There were 50 or more warnings (use warnings() to see the first 50) > par3 = '0' > par2 = 'TRUE' > par1 = '3' > ylab = '' > xlab = '' > main = 'Smokers v NoN Smokers spiceness rating' > par3 <- '0' > par2 <- 'TRUE' > 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/wessaorg/rcomp/tmp/1nxma1352729422.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > pairs(t(y)) Error in plot.window(...) : need finite 'xlim' values Calls: pairs ... localPlot -> plot -> plot.default -> localWindow -> plot.window In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf Execution halted