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(110.48,111.41,115.5,118.32,118.42,117.5,110.23,109.19,118.41,118.3,116.1,114.11,113.41,114.33,116.61,123.64,123.77,123.39,116.03,114.95,123.4,123.53,114.45,114.26,114.35,112.77,115.31,114.93,116.38,115.07,105,103.43,114.52,115.04,117.16,115,116.22,112.92,116.56,114.32,113.22,111.56,103.87,102.85,112.27,112.76,118.55,122.73,115.44,116.97,119.84,116.37,117.23,115.58,109.82,108.46,116.54,117.49,122.87,127.1,119.81,120.03,128.58,120.4,121.54,118.71,111.57,109.97,120.29,120.61,130.15,136.12) > par1 = '12' > par1 <- as.numeric(par1) > (n <- length(x)) [1] 72 > (np <- floor(n / par1)) [1] 6 > arr <- array(NA,dim=c(par1,np+1)) > darr <- array(NA,dim=c(par1,np+1)) > ari <- array(0,dim=par1) > dx <- diff(x) > j <- 0 > for (i in 1:n) + { + j = j + 1 + ari[j] = ari[j] + 1 + arr[j,ari[j]] <- x[i] + darr[j,ari[j]] <- dx[i] + if (j == par1) j = 0 + } > ari [1] 6 6 6 6 6 6 6 6 6 6 6 6 > arr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 110.48 113.41 114.35 116.22 115.44 119.81 NA [2,] 111.41 114.33 112.77 112.92 116.97 120.03 NA [3,] 115.50 116.61 115.31 116.56 119.84 128.58 NA [4,] 118.32 123.64 114.93 114.32 116.37 120.40 NA [5,] 118.42 123.77 116.38 113.22 117.23 121.54 NA [6,] 117.50 123.39 115.07 111.56 115.58 118.71 NA [7,] 110.23 116.03 105.00 103.87 109.82 111.57 NA [8,] 109.19 114.95 103.43 102.85 108.46 109.97 NA [9,] 118.41 123.40 114.52 112.27 116.54 120.29 NA [10,] 118.30 123.53 115.04 112.76 117.49 120.61 NA [11,] 116.10 114.45 117.16 118.55 122.87 130.15 NA [12,] 114.11 114.26 115.00 122.73 127.10 136.12 NA > darr [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 0.93 0.92 -1.58 -3.30 1.53 0.22 NA [2,] 4.09 2.28 2.54 3.64 2.87 8.55 NA [3,] 2.82 7.03 -0.38 -2.24 -3.47 -8.18 NA [4,] 0.10 0.13 1.45 -1.10 0.86 1.14 NA [5,] -0.92 -0.38 -1.31 -1.66 -1.65 -2.83 NA [6,] -7.27 -7.36 -10.07 -7.69 -5.76 -7.14 NA [7,] -1.04 -1.08 -1.57 -1.02 -1.36 -1.60 NA [8,] 9.22 8.45 11.09 9.42 8.08 10.32 NA [9,] -0.11 0.13 0.52 0.49 0.95 0.32 NA [10,] -2.20 -9.08 2.12 5.79 5.38 9.54 NA [11,] -1.99 -0.19 -2.16 4.18 4.23 5.97 NA [12,] -0.70 0.09 1.22 -7.29 -7.29 NA NA > arr.mean <- array(NA,dim=par1) > arr.median <- array(NA,dim=par1) > arr.midrange <- array(NA,dim=par1) > for (j in 1:par1) + { + arr.mean[j] <- mean(arr[j,],na.rm=TRUE) + arr.median[j] <- median(arr[j,],na.rm=TRUE) + arr.midrange[j] <- (quantile(arr[j,],0.75,na.rm=TRUE) + quantile(arr[j,],0.25,na.rm=TRUE)) / 2 + } > overall.mean <- mean(x) > overall.median <- median(x) > overall.midrange <- (quantile(x,0.75) + quantile(x,0.25)) / 2 > postscript(file="/var/wessaorg/rcomp/tmp/195k21420415306.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.mean,type='b',ylab='mean',main='Mean Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.mean,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/2ri7m1420415306.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.median,type='b',ylab='median',main='Median Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.median,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/30iwo1420415306.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(arr.midrange,type='b',ylab='midrange',main='Midrange Plot',xlab='Periodic Index') > mtext(paste('#blocks = ',np)) > abline(overall.midrange,0) > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/4vcxz1420415306.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,] 110.480 111.410 115.310 114.320 113.220 111.56 103.870 102.850 112.270 [2,] 113.410 112.770 115.500 114.930 116.380 115.07 105.000 103.430 114.520 [3,] 114.895 113.625 116.585 117.345 117.825 116.54 110.025 108.825 117.475 [4,] 116.220 116.970 119.840 120.400 121.540 118.71 111.570 109.970 120.290 [5,] 119.810 120.030 119.840 123.640 123.770 123.39 116.030 114.950 123.400 [,10] [,11] [,12] [1,] 112.760 114.450 114.110 [2,] 115.040 116.100 114.260 [3,] 117.895 117.855 118.865 [4,] 120.610 122.870 127.100 [5,] 123.530 130.150 136.120 $n [1] 6 6 6 6 6 6 6 6 6 6 6 6 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 113.0825 110.9159 113.7856 113.8167 114.4966 114.1921 105.7871 104.6065 [2,] 116.7075 116.3341 119.3844 120.8733 121.1534 118.8879 114.2629 113.0435 [,9] [,10] [,11] [,12] [1,] 113.7532 114.3022 113.4881 110.5828 [2,] 121.1968 121.4878 122.2219 127.1472 $out [1] 128.58 $group [1] 3 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(110.48, 113.41, 114.895, 116.22, 119.81, 111.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/59cb01420415306.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(t(darr)) > names(z) <- c(1:par1) > (boxplot(z,notch=TRUE,col='grey',xlab='Periodic Index',ylab='Value',main='Notched Box Plots - Differenced Periodic Subseries')) $stats [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [1,] -3.30 2.280 -8.18 -1.100 -1.66 -7.690 -1.60 8.08 -0.110 -9.08 -2.160 [2,] -1.58 2.540 -3.47 0.100 -1.66 -7.690 -1.57 8.45 0.130 -2.20 -1.990 [3,] 0.57 3.255 -1.31 0.495 -1.48 -7.315 -1.22 9.32 0.405 3.75 1.995 [4,] 0.93 4.090 2.82 1.140 -0.92 -7.140 -1.04 10.32 0.520 5.79 4.230 [5,] 1.53 4.090 7.03 1.450 -0.38 -7.140 -1.02 11.09 0.950 9.54 5.970 [,12] [1,] -7.29 [2,] -7.29 [3,] -0.70 [4,] 0.09 [5,] 1.22 $n [1] 6 6 6 6 6 6 6 6 6 6 6 5 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] -1.049031 2.2552 -5.367253 -0.1758336 -1.957324 -7.669768 -1.5618671 [2,] 2.189031 4.2548 2.747253 1.1658336 -1.002676 -6.960232 -0.8781329 [,8] [,9] [,10] [,11] [,12] [1,] 8.11379 0.1534374 -1.403808 -2.017101 -5.914689 [2,] 10.52621 0.6565626 8.903808 6.007101 4.514689 $out [1] 8.55 -2.83 -10.07 -5.76 $group [1] 2 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" "11" "12" Warning message: In bxp(list(stats = c(-3.3, -1.58, 0.57, 0.929999999999993, 1.53, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/6eizd1420415306.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] [1,] 109.190 113.410 112.770 111.560 115.440 111.570 NA [2,] 110.945 114.390 113.560 111.915 115.510 119.260 NA [3,] 115.800 116.320 114.965 113.070 116.755 120.345 NA [4,] 118.310 123.465 115.190 116.390 118.665 125.060 NA [5,] 118.420 123.770 117.160 122.730 122.870 130.150 NA $n [1] 12 12 12 12 12 12 0 $conf [,1] [,2] [,3] [,4] [,5] [,6] [,7] [1,] 112.4408 112.1808 114.2215 111.0289 115.316 117.6996 NA [2,] 119.1592 120.4592 115.7085 115.1111 118.194 122.9904 NA $out [1] 105.00 103.43 103.87 102.85 109.82 108.46 127.10 109.97 136.12 $group [1] 3 3 4 4 5 5 5 6 6 $names [1] "1" "2" "3" "4" "5" "6" NA Warning message: In bxp(list(stats = c(109.19, 110.945, 115.8, 118.31, 118.42, 113.41, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > postscript(file="/var/wessaorg/rcomp/tmp/7o3371420415306.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > z <- data.frame(cbind(arr.mean,arr.median,arr.midrange)) > names(z) <- list('mean','median','midrange') > (boxplot(z,notch=TRUE,col='grey',ylab='Overall Central Tendency',main='Notched Box Plots')) $stats [,1] [,2] [,3] [1,] 109.4200 110.025 114.5588 [2,] 114.8450 114.260 114.6969 [3,] 117.7633 116.965 117.4106 [4,] 118.5800 117.840 118.2594 [5,] 121.5533 118.865 120.2262 $n [1] 12 12 12 $conf [,1] [,2] [,3] [1,] 116.0598 115.3321 115.7857 [2,] 119.4669 118.5979 119.0355 $out [1] 108.1417 108.8250 108.7200 107.2312 $group [1] 1 2 3 3 $names [1] "mean" "median" "midrange" Warning message: In bxp(list(stats = c(109.42, 114.845, 117.763333333333, 118.58, : some notches went outside hinges ('box'): maybe set notch=FALSE > dev.off() null device 1 > > try(system("convert tmp/195k21420415306.ps tmp/195k21420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/2ri7m1420415306.ps tmp/2ri7m1420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/30iwo1420415306.ps tmp/30iwo1420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/4vcxz1420415306.ps tmp/4vcxz1420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/59cb01420415306.ps tmp/59cb01420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/6eizd1420415306.ps tmp/6eizd1420415306.png",intern=TRUE)) character(0) > try(system("convert tmp/7o3371420415306.ps tmp/7o3371420415306.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.455 0.462 2.944