R version 3.2.5 (2016-04-14) -- "Very, Very Secure Dishes" Copyright (C) 2016 The R Foundation for Statistical Computing Platform: x86_64-pc-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. 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(250785 + ,250140 + ,255755 + ,254671 + ,253919 + ,253741 + ,252729 + ,253810 + ,256653 + ,255231 + ,258405 + ,251061 + ,254811 + ,254895 + ,258325 + ,257608 + ,258759 + ,258621 + ,257852 + ,260560 + ,262358 + ,260812 + ,261165 + ,257164 + ,260720 + ,259581 + ,264743 + ,261845 + ,262262 + ,261631 + ,258953 + ,259966 + ,262850 + ,262204 + ,263418 + ,262752 + ,266433 + ,267722 + ,266003 + ,262971 + ,265521 + ,264676 + ,270223 + ,269508 + ,268457 + ,265814 + ,266680 + ,263018 + ,269285 + ,269829 + ,270911 + ,266844 + ,271244 + ,269907 + ,271296 + ,270157 + ,271322 + ,267179 + ,264101 + ,265518 + ,269419 + ,268714 + ,272482 + ,268351 + ,268175 + ,270674 + ,272764 + ,272599 + ,270333 + ,270846 + ,270491 + ,269160 + ,274027 + ,273784 + ,276663 + ,274525 + ,271344 + ,271115 + ,270798 + ,273911 + ,273985 + ,271917 + ,273338 + ,270601 + ,273547 + ,275363 + ,281229 + ,277793 + ,279913 + ,282500 + ,280041 + ,282166 + ,290304 + ,283519 + ,287816 + ,285226 + ,287595 + ,289741 + ,289148 + ,288301 + ,290155 + ,289648 + ,288225 + ,289351 + ,294735 + ,305333 + ,309030 + ,310215 + ,321935 + ,325734 + ,320846 + ,323023 + ,319753 + ,321753 + ,320757 + ,324479 + ,324641 + ,322767 + ,324181 + ,321389 + ,327897 + ,334287 + ,332653 + ,334819 + ,335264 + ,339622 + ,342440 + ,346585 + ,335378 + ,337010 + ,339130 + ,341193 + ,343507 + ,348915 + ,346431 + ,348322 + ,348288 + ,346597 + ,351076 + ,355215 + ,350562 + ,355266 + ,361565 + ,363462 + ,366183 + ,365423 + ,369208 + ,366713 + ,369354 + ,371970 + ,371824 + ,373187 + ,367270 + ,368140 + ,373742 + ,364815 + ,368558 + ,371503 + ,372611 + ,370197 + ,375441 + ,375888 + ,375132 + ,381142 + ,372024 + ,376070 + ,376864 + ,371401 + ,375687 + ,384304 + ,380738 + ,379908 + ,384007 + ,384499 + ,385106 + ,387935 + ,380435 + ,379281 + ,384153 + ,380599) > par1 = '12' > par1 <- '12' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa P., (2012), Standard Deviation Plot (v1.0.2) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_sdplot.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > par1 <- as.numeric(par1) > (n <- length(x)) [1] 180 > (np <- floor(n / par1)) [1] 15 > 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] 15 15 15 15 15 15 15 15 15 15 15 15 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [1,] 250785 254811 260720 266433 269285 269419 274027 273547 287595 321935 [2,] 250140 254895 259581 267722 269829 268714 273784 275363 289741 325734 [3,] 255755 258325 264743 266003 270911 272482 276663 281229 289148 320846 [4,] 254671 257608 261845 262971 266844 268351 274525 277793 288301 323023 [5,] 253919 258759 262262 265521 271244 268175 271344 279913 290155 319753 [6,] 253741 258621 261631 264676 269907 270674 271115 282500 289648 321753 [7,] 252729 257852 258953 270223 271296 272764 270798 280041 288225 320757 [8,] 253810 260560 259966 269508 270157 272599 273911 282166 289351 324479 [9,] 256653 262358 262850 268457 271322 270333 273985 290304 294735 324641 [10,] 255231 260812 262204 265814 267179 270846 271917 283519 305333 322767 [11,] 258405 261165 263418 266680 264101 270491 273338 287816 309030 324181 [12,] 251061 257164 262752 263018 265518 269160 270601 285226 310215 321389 [,11] [,12] [,13] [,14] [,15] [,16] [1,] 327897 343507 366183 368558 375687 NA [2,] 334287 348915 365423 371503 384304 NA [3,] 332653 346431 369208 372611 380738 NA [4,] 334819 348322 366713 370197 379908 NA [5,] 335264 348288 369354 375441 384007 NA [6,] 339622 346597 371970 375888 384499 NA [7,] 342440 351076 371824 375132 385106 NA [8,] 346585 355215 373187 381142 387935 NA [9,] 335378 350562 367270 372024 380435 NA [10,] 337010 355266 368140 376070 379281 NA [11,] 339130 361565 373742 376864 384153 NA [12,] 341193 363462 364815 371401 380599 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/1wks61461518207.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/2q6ee1461518207.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/3qswx1461518207.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/4ihxj1461518207.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] [1,] 250785 250140 255755 254671.0 253919 253741.0 252729.0 253810.0 256653 [2,] 267859 268218 268457 264907.5 266848 267291.5 270510.5 269832.5 269395 [3,] 274027 275363 281229 277793.0 279913 282500.0 280041.0 282166.0 290304 [4,] 335702 341601 339542 341570.5 341776 343109.5 346758.0 350900.0 342970 [5,] 375687 384304 380738 379908.0 384007 384499.0 385106.0 387935.0 380435 [,10] [,11] [,12] [1,] 255231.0 258405.0 251061.0 [2,] 266496.5 265390.5 264268.0 [3,] 283519.0 287816.0 285226.0 [4,] 346138.0 350347.5 352327.5 [5,] 379281.0 384153.0 380599.0 $n [1] 15 15 15 15 15 15 15 15 15 15 15 15 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 246350.2 245426.1 252229.6 246518 249345.8 251569.7 248935.5 249094.2 [2,] 301703.8 305299.9 310228.4 309068 310480.2 313430.3 311146.5 315237.8 [,9] [,10] [,11] [,12] [1,] 260288.8 251028.9 253157.4 249301.8 [2,] 320319.2 316009.1 322474.6 321150.2 $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(250785, 267859, 274027, 335702, 375687, 250140, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5hi1s1461518207.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] [,6] [,7] [,8] [1,] 250140.0 254811 258953.0 262971.0 264101.0 268175 270601.0 273547.0 [2,] 251895.0 257386 260343.0 265098.5 267011.5 268937 271229.5 278853.0 [3,] 253864.5 258473 262024.5 266218.0 269868.0 270412 273561.0 281697.5 [4,] 255493.0 260686 262801.0 268089.5 271077.5 271664 274006.0 284372.5 [5,] 258405.0 262358 264743.0 270223.0 271322.0 272764 276663.0 290304.0 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 287595.0 319753.0 327897.0 343507.0 364815 368558.0 375687.0 NA [2,] 288724.5 321117.5 334553.0 347442.5 366448 371452.0 380171.5 NA [3,] 289694.5 322351.0 336194.0 349738.5 368674 373871.5 382372.5 NA [4,] 300034.0 324330.0 340407.5 355240.5 371897 375979.0 384401.5 NA [5,] 310215.0 325734.0 346585.0 363462.0 373742 381142.0 387935.0 NA $n [1] 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 252223.4 256967.8 260903.4 264853.8 268013.5 269168.2 272294.6 279180 [2,] 255505.6 259978.2 263145.6 267582.2 271722.5 271655.8 274827.4 284215 [,9] [,10] [,11] [,12] [,13] [,14] [,15] [,16] [1,] 284536.2 320885.8 333523.7 346181.8 366188.7 371806.7 380443.2 NA [2,] 294852.8 323816.2 338864.3 353295.2 371159.3 375936.3 384301.8 NA $out numeric(0) $group numeric(0) $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" "13" "14" "15" [16] NA Warning message: In bxp(list(stats = c(250140, 251895, 253864.5, 255493, 258405, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6ut3l1461518207.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,] 44983.42 123782.0 67843.00 [2,] 45722.46 124942.5 73479.00 [3,] 47071.81 127643.0 76032.75 [4,] 47806.79 131567.5 80354.50 [5,] 49129.37 134164.0 88059.50 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 46121.14 124621.3 72896.79 [2,] 48022.49 130664.7 79168.71 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(44983.4189989833, 45722.4620249604, 47071.811557696, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1wks61461518207.ps tmp/1wks61461518207.png",intern=TRUE)) character(0) > try(system("convert tmp/2q6ee1461518207.ps tmp/2q6ee1461518207.png",intern=TRUE)) character(0) > try(system("convert tmp/3qswx1461518207.ps tmp/3qswx1461518207.png",intern=TRUE)) character(0) > try(system("convert tmp/4ihxj1461518207.ps tmp/4ihxj1461518207.png",intern=TRUE)) character(0) > try(system("convert tmp/5hi1s1461518207.ps tmp/5hi1s1461518207.png",intern=TRUE)) character(0) > try(system("convert tmp/6ut3l1461518207.ps tmp/6ut3l1461518207.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.172 0.402 2.598