R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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 <- c(695,638,762,635,721,854,418,367,824,687,601,676,740,691,683,594,729,731,386,331,707,715,657,653,642,643,718,654,632,731,392,344,792,852,649,629,685,617,715,715,629,916,531,357,917,828,708,858) > par1 = '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 48 > (np <- floor(n / par1)) [1] 4 > arr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + if (j == par1) j = 0 + } > ari [1] 4 4 4 4 4 4 4 4 4 4 4 4 > arr [,1] [,2] [,3] [,4] [,5] [1,] 695 740 642 685 NA [2,] 638 691 643 617 NA [3,] 762 683 718 715 NA [4,] 635 594 654 715 NA [5,] 721 729 632 629 NA [6,] 854 731 731 916 NA [7,] 418 386 392 531 NA [8,] 367 331 344 357 NA [9,] 824 707 792 917 NA [10,] 687 715 852 828 NA [11,] 601 657 649 708 NA [12,] 676 653 629 858 NA > arr.sd <- array(NA,dim=par1) > arr.range <- array(NA,dim=par1) > arr.iqr <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.sd[j] <- sqrt(var(arr[j,],na.rm=TRUE)) + arr.range[j] <- max(arr[j,],na.rm=TRUE) - min(arr[j,],na.rm=TRUE) + arr.iqr[j] <- quantile(arr[j,],0.75,na.rm=TRUE) - quantile(arr[j,],0.25,na.rm=TRUE) + } > overall.sd <- sqrt(var(x)) > overall.range <- max(x) - min(x) > overall.iqr <- quantile(x,0.75) - quantile(x,0.25) > postscript(file="/var/wessaorg/rcomp/tmp/10dny1324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.sd,type='b',ylab='S.D.',main='Standard Deviation Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.sd,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/202l31324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.range,type='b',ylab='range',main='Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.range,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/38k8g1324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.iqr,type='b',ylab='IQR',main='Interquartile Range Plot',xlab='Periodic Index') > mtext(paste('# blocks = ',np)) > abline(overall.iqr,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4d4531324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(arr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] [1,] 642.0 617.0 683.0 594.0 629.0 731.0 386.0 331.0 707.0 687.0 601.0 629.0 [2,] 663.5 627.5 699.0 614.5 630.5 731.0 389.0 337.5 749.5 701.0 625.0 641.0 [3,] 690.0 640.5 716.5 644.5 676.5 792.5 405.0 350.5 808.0 771.5 653.0 664.5 [4,] 717.5 667.0 740.0 684.5 725.0 885.0 474.5 362.0 870.5 840.0 682.5 767.0 [5,] 740.0 691.0 762.0 715.0 729.0 916.0 531.0 367.0 917.0 852.0 708.0 858.0 $n [1] 4 4 4 4 4 4 4 4 4 4 4 4 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 647.34 609.295 684.11 589.2 601.845 670.84 337.455 331.145 712.41 661.69 [2,] 732.66 671.705 748.89 699.8 751.155 914.16 472.545 369.855 903.59 881.31 [,11] [,12] [1,] 607.575 564.96 [2,] 698.425 764.04 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(642, 663.5, 690, 717.5, 740, 617, 627.5, 640.5, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/57bli1324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(arr) > names(z) <- c(1:np) > (boxplot(z,notch=TRUE,col='grey',xlab='Block Index',ylab='Value',main='Notched Box Plots - Sequential Blocks')) $stats [,1] [,2] [,3] [,4] [,5] [1,] 601.0 594.0 629.0 357.0 NA [2,] 618.0 623.5 630.5 623.0 NA [3,] 681.5 687.0 646.0 711.5 NA [4,] 741.5 722.0 724.5 843.0 NA [5,] 854.0 740.0 852.0 917.0 NA $n [1] 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [1,] 625.1708 642.0735 603.126 611.1565 NA [2,] 737.8292 731.9265 688.874 811.8435 NA $out [1] 418 367 386 331 392 344 $group [1] 1 1 2 2 3 3 $names [1] "1" "2" "3" "4" NA Warning message: In bxp(list(stats = c(601, 618, 681.5, 741.5, 854, 594, 623.5, 687, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6be021324649283.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.sd,arr.range,arr.iqr)) > names(z) <- list('S.D.','Range','IQR') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Variability',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 15.64981 36.0 18.750 [2,] 36.34023 88.5 27.125 [3,] 52.50326 114.0 50.125 [4,] 84.20211 175.0 84.125 [5,] 104.44456 229.0 138.500 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 30.67314 74.54677 24.12692 [2,] 74.33339 153.45323 76.12308 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(15.6498136304132, 36.340229581704, 52.5032631960977, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/10dny1324649283.ps tmp/10dny1324649283.png",intern=TRUE)) character(0) > try(system("convert tmp/202l31324649283.ps tmp/202l31324649283.png",intern=TRUE)) character(0) > try(system("convert tmp/38k8g1324649283.ps tmp/38k8g1324649283.png",intern=TRUE)) character(0) > try(system("convert tmp/4d4531324649283.ps tmp/4d4531324649283.png",intern=TRUE)) character(0) > try(system("convert tmp/57bli1324649283.ps tmp/57bli1324649283.png",intern=TRUE)) character(0) > try(system("convert tmp/6be021324649283.ps tmp/6be021324649283.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.384 0.361 1.748