R version 2.10.1 (2009-12-14) 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. > x <- c(580,575,558,564,581,597,587,536,524,537,536,533,528,516,502,506,518,534,528,478,469,490,493,508,517,514,510,527,542,565,555,499,511,526,532,549,561,557,566,588,620,626,620,573,573,574,580,590,593,597,595,612,628,629,621,569,567,573,584,589,591,595,594,611,613,611,594,543,537,544,555,561,562) > par1 = '12' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), 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: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > (n <- length(x)) [1] 73 > (np <- floor(n / par1)) [1] 6 > 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] 7 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 580 528 517 561 593 591 562 [2,] 575 516 514 557 597 595 NA [3,] 558 502 510 566 595 594 NA [4,] 564 506 527 588 612 611 NA [5,] 581 518 542 620 628 613 NA [6,] 597 534 565 626 629 611 NA [7,] 587 528 555 620 621 594 NA [8,] 536 478 499 573 569 543 NA [9,] 524 469 511 573 567 537 NA [10,] 537 490 526 574 573 544 NA [11,] 536 493 532 580 584 555 NA [12,] 533 508 549 590 589 561 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/www/rcomp/tmp/1uxwm1274287831.ps",horizontal=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/www/rcomp/tmp/246dp1274287831.ps",horizontal=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/www/rcomp/tmp/346dp1274287831.ps",horizontal=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/www/rcomp/tmp/4fxus1274287831.ps",horizontal=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,] 517.0 514 502 506 518 534 528.0 478.0 469.0 490.0 493.0 508 [2,] 544.5 516 510 527 542 565 555.0 499.0 511.0 526.0 532.0 533 [3,] 562.0 566 562 576 597 604 590.5 539.5 530.5 540.5 545.5 555 [4,] 585.5 595 594 611 620 626 620.0 569.0 567.0 573.0 580.0 589 [5,] 593.0 597 595 612 628 629 621.0 573.0 573.0 574.0 584.0 590 $n [1] 7 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 537.5155 515.0424 507.8173 521.8173 546.6875 564.653 548.5729 494.3477 [2,] 586.4845 616.9576 616.1827 630.1827 647.3125 643.347 632.4271 584.6523 [,9] [,10] [,11] [,12] [1,] 494.3782 510.1835 514.5384 518.8782 [2,] 566.6218 570.8165 576.4616 591.1218 $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(517, 544.5, 562, 585.5, 593, 514, 516, 566, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/5fxus1274287831.ps",horizontal=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] [,6] [,7] [1,] 524.0 469.0 499.0 557.0 567.0 537.0 562 [2,] 536.0 491.5 512.5 569.5 578.5 549.5 562 [3,] 561.0 507.0 526.5 577.0 594.0 592.5 562 [4,] 580.5 523.0 545.5 605.0 616.5 603.0 562 [5,] 597.0 534.0 565.0 626.0 629.0 613.0 562 $n [1] 12 12 12 12 12 12 1 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 540.7033 492.6326 511.4485 560.8082 576.668 568.0983 562 [2,] 581.2967 521.3674 541.5515 593.1918 611.332 616.9017 562 $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(524, 536, 561, 580.5, 597, 469, 491.5, 507, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/www/rcomp/tmp/6fxus1274287831.ps",horizontal=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,] 29.74175 76.0 37.000 [2,] 33.04547 83.5 43.000 [3,] 37.23050 93.0 49.875 [4,] 39.31645 99.5 64.375 [5,] 45.16931 110.0 69.000 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 34.37027 85.7023 40.12572 [2,] 40.09073 100.2977 59.62428 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(29.7417455535385, 33.0454748100765, 37.230500493344, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1uxwm1274287831.ps tmp/1uxwm1274287831.png",intern=TRUE)) character(0) > try(system("convert tmp/246dp1274287831.ps tmp/246dp1274287831.png",intern=TRUE)) character(0) > try(system("convert tmp/346dp1274287831.ps tmp/346dp1274287831.png",intern=TRUE)) character(0) > try(system("convert tmp/4fxus1274287831.ps tmp/4fxus1274287831.png",intern=TRUE)) character(0) > try(system("convert tmp/5fxus1274287831.ps tmp/5fxus1274287831.png",intern=TRUE)) character(0) > try(system("convert tmp/6fxus1274287831.ps tmp/6fxus1274287831.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 1.41 1.26 2.45