R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 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(3469648.00 + ,3456726.00 + ,3443622.00 + ,3416504.00 + ,3684772.00 + ,3670576.00 + ,3469648.00 + ,3336060.00 + ,3348982.00 + ,3348982.00 + ,3363360.00 + ,3389204.00 + ,3429426.00 + ,3429426.00 + ,3403582.00 + ,3336060.00 + ,3684772.00 + ,3737916.00 + ,3657654.00 + ,3469648.00 + ,3550092.00 + ,3429426.00 + ,3483844.00 + ,3509870.00 + ,3536988.00 + ,3469648.00 + ,3483844.00 + ,3389204.00 + ,3684772.00 + ,3778138.00 + ,3697876.00 + ,3550092.00 + ,3710798.00 + ,3536988.00 + ,3697876.00 + ,3684772.00 + ,3724994.00 + ,3577210.00 + ,3737916.00 + ,3724994.00 + ,3966144.00 + ,3911726.00 + ,3697876.00 + ,3590132.00 + ,3737916.00 + ,3536988.00 + ,3684772.00 + ,3710798.00 + ,3765216.00 + ,3644732.00 + ,3710798.00 + ,3751020.00 + ,3898804.00 + ,3778138.00 + ,3617432.00 + ,3443622.00 + ,3604510.00 + ,3162250.00 + ,3376282.00 + ,3496766.00 + ,3617432.00 + ,3443622.00 + ,3443622.00 + ,3443622.00 + ,3536988.00 + ,3403582.00 + ,3228498.00 + ,3081988.00 + ,3188276.00 + ,2773316.00 + ,3027570.00 + ,3175354.00 + ,3202472.00 + ,3054688.00 + ,3067610.00 + ,3027570.00 + ,3162250.00 + ,3067610.00 + ,2881060.00 + ,2746198.00 + ,2974244.00 + ,2479022.00 + ,2800616.00 + ,2947126.00 + ,2947126.00 + ,2773316.00 + ,2612610.00 + ,2599688.00 + ,2746198.00 + ,2612610.00 + ,2358538.00 + ,2183454.00 + ,2371460.00 + ,1929382.00 + ,2331238.00 + ,2545088.00 + ,2612610.00 + ,2464826.00 + ,2278094.00 + ,2411682.00 + ,2464826.00 + ,2424604.00 + ,2022566.00 + ,1836016.00 + ,1969422.00 + ,1567566.00 + ,1982526.00 + ,2130310.00 + ,2250794.00 + ,2049866.00 + ,1861860.00 + ,1969422.00 + ,2022566.00 + ,1916278.00 + ,1514422.00 + ,1339338.00 + ,1500044.00 + ,1057966.00 + ,1540266.00 + ,1836016.00) > 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] 120 > (np <- floor(n / par1)) [1] 10 > 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] 10 10 10 10 10 10 10 10 10 10 10 10 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3469648 3429426 3536988 3724994 3765216 3617432 3202472 2947126 2612610 [2,] 3456726 3429426 3469648 3577210 3644732 3443622 3054688 2773316 2464826 [3,] 3443622 3403582 3483844 3737916 3710798 3443622 3067610 2612610 2278094 [4,] 3416504 3336060 3389204 3724994 3751020 3443622 3027570 2599688 2411682 [5,] 3684772 3684772 3684772 3966144 3898804 3536988 3162250 2746198 2464826 [6,] 3670576 3737916 3778138 3911726 3778138 3403582 3067610 2612610 2424604 [7,] 3469648 3657654 3697876 3697876 3617432 3228498 2881060 2358538 2022566 [8,] 3336060 3469648 3550092 3590132 3443622 3081988 2746198 2183454 1836016 [9,] 3348982 3550092 3710798 3737916 3604510 3188276 2974244 2371460 1969422 [10,] 3348982 3429426 3536988 3536988 3162250 2773316 2479022 1929382 1567566 [11,] 3363360 3483844 3697876 3684772 3376282 3027570 2800616 2331238 1982526 [12,] 3389204 3509870 3684772 3710798 3496766 3175354 2947126 2545088 2130310 [,10] [,11] [1,] 2250794 NA [2,] 2049866 NA [3,] 1861860 NA [4,] 1969422 NA [5,] 2022566 NA [6,] 1916278 NA [7,] 1514422 NA [8,] 1339338 NA [9,] 1500044 NA [10,] 1057966 NA [11,] 1540266 NA [12,] 1836016 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/1qro41438964560.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/2xw691438964560.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/34p9i1438964560.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/4syak1438964560.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,] 2250794 2049866 1861860 1969422 2022566 1916278 1514422 1339338 1500044 [2,] 2947126 2773316 2612610 2599688 2746198 2612610 2358538 2183454 2371460 [3,] 3449537 3436524 3423602 3362632 3610880 3537079 3349073 3209024 3268629 [4,] 3617432 3469648 3483844 3443622 3684772 3778138 3657654 3469648 3604510 [5,] 3765216 3644732 3737916 3751020 3966144 3911726 3697876 3590132 3737916 [,10] [,11] [,12] [1,] 1057966 1540266 1836016 [2,] 1929382 2331238 2545088 [3,] 2967783 3195465 3282279 [4,] 3429426 3483844 3509870 [5,] 3536988 3697876 3710798 $n [1] 10 10 10 10 10 10 10 10 10 10 10 10 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3114625 3088609 2988299 2940969 3141931 2954735 2699983 2566390 2652548 [2,] 3784449 3784439 3858905 3784295 4079829 4119423 3998163 3851658 3884710 [,10] [,11] [,12] [1,] 2218301 2619577 2800235 [2,] 3717265 3771353 3764323 $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(2250794, 2947126, 3449537, 3617432, 3765216, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/5wte91438964560.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] [,9] [1,] 3336060 3336060 3389204 3536988 3162250 2773316 2746198 1929382 1567566 [2,] 3356171 3429426 3510416 3637452 3470194 3128671 2840838 2344888 1975974 [3,] 3430063 3476746 3617432 3717896 3631082 3316040 3000907 2572388 2204202 [4,] 3469648 3603873 3697876 3737916 3758118 3443622 3067610 2679404 2444715 [5,] 3469648 3737916 3778138 3737916 3898804 3617432 3202472 2947126 2612610 [,10] [,11] [1,] 1057966 NA [2,] 1507233 NA [3,] 1848938 NA [4,] 1995994 NA [5,] 2250794 NA $n [1] 12 12 12 12 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [1,] 3378305 3397180 3531930 3672074 3499758 3172389 2897475 2419813 1990406 [2,] 3481821 3556312 3702934 3763718 3762406 3459691 3104339 2724963 2417998 [,10] [,11] [1,] 1626011 NA [2,] 2071865 NA $out [1] 3684772 3670576 3966144 3911726 2479022 $group [1] 1 1 4 4 7 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" NA Warning message: In bxp(list(stats = c(3336060, 3356171, 3430063, 3469648, 3469648, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6v6hm1438964560.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,] 504118.9 1514422 586358.5 [2,] 617870.0 1828190 738806.2 [3,] 678722.0 1969513 934683.8 [4,] 789824.7 2210663 1103875.5 [5,] 893904.1 2479022 1342523.0 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 600292.3 1795064 768173.2 [2,] 757151.7 2143962 1101194.3 $out numeric(0) $group numeric(0) $names [1] "S.D." "Range" "IQR" Warning message: In bxp(list(stats = c(504118.901648367, 617869.961399544, 678721.982741879, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/1qro41438964560.ps tmp/1qro41438964560.png",intern=TRUE)) character(0) > try(system("convert tmp/2xw691438964560.ps tmp/2xw691438964560.png",intern=TRUE)) character(0) > try(system("convert tmp/34p9i1438964560.ps tmp/34p9i1438964560.png",intern=TRUE)) character(0) > try(system("convert tmp/4syak1438964560.ps tmp/4syak1438964560.png",intern=TRUE)) character(0) > try(system("convert tmp/5wte91438964560.ps tmp/5wte91438964560.png",intern=TRUE)) character(0) > try(system("convert tmp/6v6hm1438964560.ps tmp/6v6hm1438964560.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.262 0.352 2.638