R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: i686-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 <- array(list(0.82 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.00 + ,0.01 + ,0.07 + ,134 + ,0.94 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,113 + ,0.89 + ,0.08 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,66 + ,0.81 + ,0.12 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.00 + ,0.02 + ,0.02 + ,58 + ,0.90 + ,0.07 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,81 + ,0.87 + ,0.08 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,63 + ,0.88 + ,0.02 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.08 + ,128 + ,0.77 + ,0.10 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.08 + ,0.02 + ,0.02 + ,61 + ,0.88 + ,0.04 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.05 + ,56 + ,0.84 + ,0.04 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,0.04 + ,92 + ,0.74 + ,0.11 + ,0.02 + ,0.02 + ,0.02 + ,0.00 + ,0.00 + ,0.01 + ,0.01 + ,0.01 + ,0.06 + ,126 + ,0.83 + ,0.10 + ,0.01 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.02 + ,153 + ,0.71 + ,0.11 + ,0.13 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,126 + ,0.86 + ,0.03 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.03 + ,0.02 + ,0.00 + ,0.04 + ,182 + ,0.85 + ,0.09 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.03 + ,116 + ,0.78 + ,0.16 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,104 + ,0.65 + ,0.14 + ,0.13 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.01 + ,0.03 + ,101 + ,0.80 + ,0.06 + ,0.04 + ,0.00 + ,0.01 + ,0.00 + ,0.01 + ,0.01 + ,0.00 + ,0.01 + ,0.05 + ,140 + ,0.75 + ,0.15 + ,0.08 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,133 + ,0.75 + ,0.09 + ,0.13 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,182 + ,0.55 + ,0.19 + ,0.18 + ,0.07 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,165 + ,0.57 + ,0.18 + ,0.11 + ,0.13 + ,0.01 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,198 + ,0.62 + ,0.22 + ,0.12 + ,0.00 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,239 + ,0.57 + ,0.20 + ,0.14 + ,0.04 + ,0.01 + ,0.00 + ,0.03 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,280 + ,0.64 + ,0.23 + ,0.08 + ,0.01 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,205 + ,0.64 + ,0.17 + ,0.12 + ,0.07 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,212 + ,0.70 + ,0.18 + ,0.08 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,126 + ,0.48 + ,0.19 + ,0.17 + ,0.12 + ,0.02 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,217 + ,0.62 + ,0.13 + ,0.23 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,172 + ,0.60 + ,0.22 + ,0.15 + ,0.03 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,144 + ,0.49 + ,0.08 + ,0.26 + ,0.05 + ,0.00 + ,0.00 + ,0.03 + ,0.05 + ,0.00 + ,0.00 + ,0.05 + ,39 + ,0.77 + ,0.08 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.12 + ,0.00 + ,0.00 + ,0.00 + ,26 + ,0.50 + ,0.06 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.29 + ,0.03 + ,0.00 + ,0.09 + ,34 + ,0.41 + ,0.13 + ,0.08 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.21 + ,0.10 + ,0.00 + ,0.05 + ,39 + ,0.72 + ,0.09 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.03 + ,0.00 + ,0.00 + ,0.13 + ,32 + ,0.58 + ,0.08 + ,0.12 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.14 + ,0.00 + ,0.06 + ,0.00 + ,65 + ,0.52 + ,0.16 + ,0.13 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.06 + ,0.13 + ,0.00 + ,0.00 + ,31 + ,0.82 + ,0.13 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,55 + ,0.38 + ,0.05 + ,0.10 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.29 + ,0.19 + ,0.00 + ,0.00 + ,21 + ,0.68 + ,0.00 + ,0.14 + ,0.04 + ,0.04 + ,0.00 + ,0.04 + ,0.04 + ,0.00 + ,0.00 + ,0.04 + ,28 + ,0.72 + ,0.06 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.04 + ,0.02 + ,0.00 + ,0.13 + ,47 + ,0.82 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.05 + ,0.09 + ,0.00 + ,0.02 + ,57 + ,0.70 + ,0.05 + ,0.00 + ,0.00 + ,0.05 + ,0.00 + ,0.00 + ,0.05 + ,0.15 + ,0.00 + ,0.00 + ,20 + ,1.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,11 + ,0.71 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.06 + ,0.24 + ,0.00 + ,0.00 + ,17 + ,0.68 + ,0.09 + ,0.03 + ,0.01 + ,0.00 + ,0.00 + ,0.04 + ,0.03 + ,0.00 + ,0.00 + ,0.12 + ,119 + ,0.65 + ,0.18 + ,0.01 + ,0.05 + ,0.00 + ,0.03 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,0.06 + ,80 + ,0.60 + ,0.08 + ,0.07 + ,0.04 + ,0.00 + ,0.01 + ,0.01 + ,0.03 + ,0.02 + ,0.01 + ,0.14 + ,159 + ,0.81 + ,0.06 + ,0.01 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,0.02 + ,0.03 + ,0.00 + ,0.06 + ,105 + ,0.79 + ,0.05 + ,0.10 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.07 + ,107 + ,0.70 + ,0.08 + ,0.06 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.11 + ,0.03 + ,0.00 + ,0.02 + ,63 + ,0.75 + ,0.09 + ,0.04 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.04 + ,0.00 + ,0.05 + ,57 + ,0.64 + ,0.15 + ,0.06 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.10 + ,0.04 + ,0.01 + ,0.00 + ,72 + ,0.71 + ,0.07 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.13 + ,0.03 + ,0.00 + ,0.04 + ,114 + ,0.79 + ,0.15 + ,0.04 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,185 + ,0.72 + ,0.11 + ,0.03 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.10 + ,0.00 + ,0.00 + ,0.01 + ,115 + ,0.72 + ,0.11 + ,0.11 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.03 + ,127 + ,0.70 + ,0.04 + ,0.05 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.12 + ,0.08 + ,0.00 + ,0.00 + ,110 + ,0.63 + ,0.10 + ,0.08 + ,0.03 + ,0.00 + ,0.00 + ,0.01 + ,0.07 + ,0.00 + ,0.00 + ,0.08 + ,178 + ,0.73 + ,0.12 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.04 + ,0.01 + ,0.00 + ,0.04 + ,245 + ,0.83 + ,0.09 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,23 + ,0.89 + ,0.08 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,85 + ,0.67 + ,0.27 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.01 + ,0.02 + ,82 + ,0.76 + ,0.08 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.10 + ,49 + ,0.71 + ,0.09 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.06 + ,0.00 + ,0.03 + ,0.09 + ,34 + ,0.52 + ,0.04 + ,0.13 + ,0.02 + ,0.00 + ,0.02 + ,0.15 + ,0.00 + ,0.00 + ,0.00 + ,0.13 + ,48 + ,0.83 + ,0.10 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,42 + ,0.70 + ,0.10 + ,0.05 + ,0.05 + ,0.00 + ,0.00 + ,0.10 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,20 + ,0.93 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,27 + ,0.73 + ,0.12 + ,0.02 + ,0.01 + ,0.00 + ,0.00 + ,0.09 + ,0.02 + ,0.00 + ,0.00 + ,0.01 + ,105 + ,0.81 + ,0.09 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.04 + ,0.00 + ,0.01 + ,0.01 + ,69 + ,0.65 + ,0.00 + ,0.15 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.18 + ,68 + ,0.81 + ,0.06 + ,0.03 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.06 + ,31 + ,0.76 + ,0.08 + ,0.05 + ,0.01 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.05 + ,76 + ,0.68 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.05 + ,0.14 + ,0.00 + ,0.09 + ,22 + ,0.71 + ,0.17 + ,0.04 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,0.06 + ,112 + ,0.73 + ,0.03 + ,0.09 + ,0.03 + ,0.00 + ,0.00 + ,0.08 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,66 + ,0.86 + ,0.02 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.05 + ,0.00 + ,0.00 + ,0.00 + ,0.02 + ,43 + ,0.89 + ,0.03 + ,0.03 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.03 + ,0.00 + ,0.00 + ,0.03 + ,37 + ,0.76 + ,0.09 + ,0.02 + ,0.02 + ,0.01 + ,0.00 + ,0.02 + ,0.01 + ,0.02 + ,0.00 + ,0.04 + ,91 + ,0.46 + ,0.22 + ,0.12 + ,0.06 + ,0.00 + ,0.01 + ,0.01 + ,0.01 + ,0.00 + ,0.01 + ,0.10 + ,287 + ,0.48 + ,0.17 + ,0.16 + ,0.04 + ,0.01 + ,0.00 + ,0.01 + ,0.01 + ,0.00 + ,0.00 + ,0.11 + ,232 + ,0.55 + ,0.15 + ,0.09 + ,0.06 + ,0.01 + ,0.01 + ,0.06 + ,0.02 + ,0.00 + ,0.01 + ,0.04 + ,110 + ,0.60 + ,0.20 + ,0.10 + ,0.07 + ,0.00 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,139 + ,0.69 + ,0.03 + ,0.06 + ,0.03 + ,0.01 + ,0.00 + ,0.00 + ,0.01 + ,0.00 + ,0.00 + ,0.17 + ,77 + ,0.72 + ,0.12 + ,0.07 + ,0.03 + ,0.00 + ,0.00 + ,0.02 + ,0.03 + ,0.00 + ,0.00 + ,0.01 + ,174 + ,0.66 + ,0.13 + ,0.10 + ,0.03 + ,0.01 + ,0.01 + ,0.02 + ,0.01 + ,0.00 + ,0.00 + ,0.03 + ,104 + ,0.56 + ,0.10 + ,0.06 + ,0.07 + ,0.03 + ,0.02 + ,0.01 + ,0.00 + ,0.00 + ,0.00 + ,0.14 + ,97 + ,0.77 + ,0.12 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.00 + ,0.12 + ,26 + ,0.58 + ,0.07 + ,0.15 + ,0.04 + ,0.00 + ,0.00 + ,0.01 + ,0.05 + ,0.02 + ,0.00 + ,0.07 + ,81) + ,dim=c(12 + ,90) + ,dimnames=list(c('V1' + ,'V2' + ,'V3' + ,'V4' + ,'V5' + ,'V6' + ,'V7' + ,'V8' + ,'V9' + ,'V10' + ,'V11' + ,'V12') + ,1:90)) > y <- array(NA,dim=c(12,90),dimnames=list(c('V1','V2','V3','V4','V5','V6','V7','V8','V9','V10','V11','V12'),1:90)) > for (i in 1:dim(x)[1]) + { + for (j in 1:dim(x)[2]) + { + y[i,j] <- as.numeric(x[i,j]) + } + } > par4 = 'FALSE' > par3 = 'FALSE' > par2 = '5' > par1 = 'ward' > ylab = 'height' > xlab = 'essays' > main = 'Dendrogram' > par4 <- 'FALSE' > par3 <- 'FALSE' > par2 <- '5' > par1 <- 'ward' > #'GNU S' R Code compiled by R2WASP v. 1.2.291 () > #Author: root > #To cite this work: Wessa, P., (2012), Hierarchical Clustering (v1.0.3) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_hierarchicalclustering.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > # > par3 <- as.logical(par3) > par4 <- as.logical(par4) > if (par3 == 'TRUE'){ + dum = xlab + xlab = ylab + ylab = dum + } > x <- t(y) > hc <- hclust(dist(x),method=par1) > d <- as.dendrogram(hc) > str(d) --[dendrogram w/ 2 branches and 90 members at h = 2842] |--[dendrogram w/ 2 branches and 45 members at h = 585] | |--[dendrogram w/ 2 branches and 21 members at h = 123] | | |--[dendrogram w/ 2 branches and 7 members at h = 11.9] | | | |--[dendrogram w/ 2 branches and 2 members at h = 1.01] | | | | |--leaf "74" | | | | `--leaf "85" | | | `--[dendrogram w/ 2 branches and 5 members at h = 5.76] | | | |--leaf "62" | | | `--[dendrogram w/ 2 branches and 4 members at h = 1.64] | | | |--leaf "63" | | | `--[dendrogram w/ 2 branches and 3 members at h = 1.25] | | | |--leaf "47" | | | `--[dendrogram w/ 2 branches and 2 members at h = 0.363] | | | |--leaf "5" | | | `--leaf "90" | | `--[dendrogram w/ 2 branches and 14 members at h = 44.4] | | |--[dendrogram w/ 2 branches and 5 members at h = 3.24] | | | |--[dendrogram w/ 2 branches and 2 members at h = 1.01] | | | | |--leaf "9" | | | | `--leaf "38" | | | `--[dendrogram w/ 2 branches and 3 members at h = 1.3] | | | |--leaf "4" | | | `--[dendrogram w/ 2 branches and 2 members at h = 0.127] | | | |--leaf "42" | | | `--leaf "52" | | `--[dendrogram w/ 2 branches and 9 members at h = 15] | | |--[dendrogram w/ 2 branches and 3 members at h = 4.33] | | | |--leaf "53" | | | `--[dendrogram w/ 2 branches and 2 members at h = 1.04] | | | |--leaf "71" | | | `--leaf "72" | | `--[dendrogram w/ 2 branches and 6 members at h = 7.85] | | |--[dendrogram w/ 2 branches and 3 members at h = 1.32] | | | |--leaf "36" | | | `--[dendrogram w/ 2 branches and 2 members at h = 0.217] | | | |--leaf "3" | | | `--leaf "77" | | `--[dendrogram w/ 2 branches and 3 members at h = 2.6] | | |--leaf "8" | | `--[dendrogram w/ 2 branches and 2 members at h = 0.209] | | |--leaf "6" | | `--leaf "51" | `--[dendrogram w/ 2 branches and 24 members at h = 126] | |--[dendrogram w/ 2 branches and 8 members at h = 23.7] | | |--[dendrogram w/ 2 branches and 3 members at h = 1.69] | | | |--leaf "64" | | | `--[dendrogram w/ 2 branches and 2 members at h = 1.04] | | | |--leaf "41" | | | `--leaf "66" | | `--[dendrogram w/ 2 branches and 5 members at h = 8.27] | | |--[dendrogram w/ 2 branches and 2 members at h = 1] | | | |--leaf "67" | | | `--leaf "78" | | `--[dendrogram w/ 2 branches and 3 members at h = 2.66] | | |--leaf "79" | | `--[dendrogram w/ 2 branches and 2 members at h = 0.282] | | |--leaf "31" | | `--leaf "34" | `--[dendrogram w/ 2 branches and 16 members at h = 55.9] | |--[dendrogram w/ 2 branches and 7 members at h = 14.5] | | |--leaf "44" | | `--[dendrogram w/ 2 branches and 6 members at h = 5.91] | | |--leaf "45" | | `--[dendrogram w/ 2 branches and 5 members at h = 4.02] | | |--[dendrogram w/ 2 branches and 2 members at h = 1.03] | | | |--leaf "61" | | | `--leaf "75" | | `--[dendrogram w/ 2 branches and 3 members at h = 1.39] | | |--leaf "39" | | `--[dendrogram w/ 2 branches and 2 members at h = 0.212] | | |--leaf "43" | | `--leaf "68" | `--[dendrogram w/ 2 branches and 9 members at h = 19.8] | |--[dendrogram w/ 2 branches and 4 members at h = 2.43] | | |--[dendrogram w/ 2 branches and 2 members at h = 0.179] | | | |--leaf "32" | | | `--leaf "89" | | `--[dendrogram w/ 2 branches and 2 members at h = 1.04] | | |--leaf "40" | | `--leaf "69" | `--[dendrogram w/ 2 branches and 5 members at h = 5.6] | |--[dendrogram w/ 2 branches and 2 members at h = 0.319] | | |--leaf "33" | | `--leaf "65" | `--[dendrogram w/ 2 branches and 3 members at h = 1.25] | |--leaf "35" | `--[dendrogram w/ 2 branches and 2 members at h = 0.359] | |--leaf "37" | `--leaf "73" `--[dendrogram w/ 2 branches and 45 members at h = 1251] |--[dendrogram w/ 2 branches and 27 members at h = 221] | |--[dendrogram w/ 2 branches and 10 members at h = 43.7] | | |--[dendrogram w/ 2 branches and 5 members at h = 2.91] | | | |--[dendrogram w/ 2 branches and 3 members at h = 0.139] | | | | |--leaf "11" | | | | `--[dendrogram w/ 2 branches and 2 members at h = 0.0938] | | | | |--leaf "13" | | | | `--leaf "27" | | | `--[dendrogram w/ 2 branches and 2 members at h = 1.02] | | | |--leaf "7" | | | `--leaf "57" | | `--[dendrogram w/ 2 branches and 5 members at h = 14.7] | | |--[dendrogram w/ 2 branches and 2 members at h = 1.01] | | | |--leaf "1" | | | `--leaf "19" | | `--[dendrogram w/ 2 branches and 3 members at h = 5.66] | | |--leaf "30" | | `--[dendrogram w/ 2 branches and 2 members at h = 1.03] | | |--leaf "18" | | `--leaf "84" | `--[dendrogram w/ 2 branches and 17 members at h = 70.5] | |--[dendrogram w/ 2 branches and 8 members at h = 10.6] | | |--[dendrogram w/ 2 branches and 2 members at h = 0.248] | | | |--leaf "58" | | | `--leaf "83" | | `--[dendrogram w/ 2 branches and 6 members at h = 7] | | |--leaf "46" | | `--[dendrogram w/ 2 branches and 5 members at h = 4.33] | | |--[dendrogram w/ 2 branches and 2 members at h = 1.04] | | | |--leaf "2" | | | `--leaf "76" | | `--[dendrogram w/ 2 branches and 3 members at h = 1.68] | | |--leaf "15" | | `--[dendrogram w/ 2 branches and 2 members at h = 1] | | |--leaf "54" | | `--leaf "56" | `--[dendrogram w/ 2 branches and 9 members at h = 31.1] | |--[dendrogram w/ 2 branches and 5 members at h = 3.57] | | |--leaf "50" | | `--[dendrogram w/ 2 branches and 4 members at h = 1.88] | | |--[dendrogram w/ 2 branches and 2 members at h = 0.141] | | | |--leaf "49" | | | `--leaf "70" | | `--[dendrogram w/ 2 branches and 2 members at h = 0.144] | | |--leaf "16" | | `--leaf "87" | `--[dendrogram w/ 2 branches and 4 members at h = 12.5] | |--[dendrogram w/ 2 branches and 2 members at h = 1.01] | | |--leaf "10" | | `--leaf "80" | `--[dendrogram w/ 2 branches and 2 members at h = 4] | |--leaf "17" | `--leaf "88" `--[dendrogram w/ 2 branches and 18 members at h = 364] |--[dendrogram w/ 2 branches and 9 members at h = 58.3] | |--[dendrogram w/ 2 branches and 3 members at h = 10] | | |--leaf "12" | | `--[dendrogram w/ 2 branches and 2 members at h = 6] | | |--leaf "21" | | `--leaf "48" | `--[dendrogram w/ 2 branches and 6 members at h = 18.9] | |--[dendrogram w/ 2 branches and 3 members at h = 3.95] | | |--leaf "55" | | `--[dendrogram w/ 2 branches and 2 members at h = 0.172] | | |--leaf "14" | | `--leaf "20" | `--[dendrogram w/ 2 branches and 3 members at h = 6] | |--leaf "59" | `--[dendrogram w/ 2 branches and 2 members at h = 2.01] | |--leaf "29" | `--leaf "86" `--[dendrogram w/ 2 branches and 9 members at h = 159] |--[dendrogram w/ 2 branches and 2 members at h = 7] | |--leaf "24" | `--leaf "81" `--[dendrogram w/ 2 branches and 7 members at h = 81.5] |--[dendrogram w/ 2 branches and 3 members at h = 11.3] | |--leaf "82" | `--[dendrogram w/ 2 branches and 2 members at h = 6] | |--leaf "23" | `--leaf "60" `--[dendrogram w/ 2 branches and 4 members at h = 20] |--[dendrogram w/ 2 branches and 2 members at h = 5] | |--leaf "26" | `--leaf "28" `--[dendrogram w/ 2 branches and 2 members at h = 7] |--leaf "22" `--leaf "25" > mysub <- paste('Method: ',par1) > postscript(file="/var/fisher/rcomp/tmp/1kj211383233145.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=16.666666666667,height=11.111111111111) > if (par4 == 'TRUE'){ + plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub) + } else { + plot(d,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub) + } > dev.off() null device 1 > if (par2 != 'ALL'){ + if (par3 == 'TRUE'){ + ylab = 'cluster' + } else { + xlab = 'cluster' + } + par2 <- as.numeric(par2) + memb <- cutree(hc, k = par2) + cent <- NULL + for(k in 1:par2){ + cent <- rbind(cent, colMeans(x[memb == k, , drop = FALSE])) + } + hc1 <- hclust(dist(cent),method=par1, members = table(memb)) + de <- as.dendrogram(hc1) + postscript(file="/var/fisher/rcomp/tmp/210pn1383233145.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=16.666666666667,height=11.111111111111) + if (par4 == 'TRUE'){ + plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8),type='t',center=T, sub=mysub) + } else { + plot(de,main=main,ylab=ylab,xlab=xlab,horiz=par3, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex = 0.8), sub=mysub) + } + dev.off() + str(de) + } --[dendrogram w/ 2 branches and 5 members at h = 189] |--[dendrogram w/ 2 branches and 2 members at h = 37.4] | |--leaf 2 | `--leaf 5 `--[dendrogram w/ 2 branches and 3 members at h = 109] |--leaf 4 `--[dendrogram w/ 2 branches and 2 members at h = 56] |--leaf 1 `--leaf 3 > > #Note: the /var/fisher/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/fisher/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Summary of Dendrogram',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Label',header=TRUE) > a<-table.element(a,'Height',header=TRUE) > a<-table.row.end(a) > num <- length(x[,1])-1 > for (i in 1:num) + { + a<-table.row.start(a) + a<-table.element(a,hc$labels[i]) + a<-table.element(a,hc$height[i]) + a<-table.row.end(a) + } > a<-table.end(a) > table.save(a,file="/var/fisher/rcomp/tmp/33e031383233145.tab") > if (par2 != 'ALL'){ + a<-table.start() + a<-table.row.start(a) + a<-table.element(a,'Summary of Cut Dendrogram',2,TRUE) + a<-table.row.end(a) + a<-table.row.start(a) + a<-table.element(a,'Label',header=TRUE) + a<-table.element(a,'Height',header=TRUE) + a<-table.row.end(a) + num <- par2-1 + for (i in 1:num) + { + a<-table.row.start(a) + a<-table.element(a,i) + a<-table.element(a,hc1$height[i]) + a<-table.row.end(a) + } + a<-table.end(a) + table.save(a,file="/var/fisher/rcomp/tmp/4wyce1383233145.tab") + } > > try(system("convert tmp/1kj211383233145.ps tmp/1kj211383233145.png",intern=TRUE)) character(0) > try(system("convert tmp/210pn1383233145.ps tmp/210pn1383233145.png",intern=TRUE)) character(0) > > > proc.time() user system elapsed 2.626 0.603 3.211