Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
2120.88 9682.35 29.08 2174.56 9762.12 28.76 2196.72 10124.63 29.59 2350.44 10540.05 30.70 2440.25 10601.61 30.52 2408.64 10323.73 32.67 2472.81 10418.40 33.19 2407.60 10092.96 37.13 2454.62 10364.91 35.54 2448.05 10152.09 37.75 2497.84 10032.80 41.84 2645.64 10204.59 42.94 2756.76 10001.60 49.14 2849.27 10411.75 44.61 2921.44 10673.38 40.22 2981.85 10539.51 44.23 3080.58 10723.78 45.85 3106.22 10682.06 53.38 3119.31 10283.19 53.26 3061.26 10377.18 51.80 3097.31 10486.64 55.30 3161.69 10545.38 57.81 3257.16 10554.27 63.96 3277.01 10532.54 63.77 3295.32 10324.31 59.15 3363.99 10695.25 56.12 3494.17 10827.81 57.42 3667.03 10872.48 63.52 3813.06 10971.19 61.71 3917.96 11145.65 63.01 3895.51 11234.68 68.18 3801.06 11333.88 72.03 3570.12 10997.97 69.75 3701.61 11036.89 74.41 3862.27 11257.35 74.33 3970.10 11533.59 64.24 4138.52 11963.12 60.03 4199.75 12185.15 59.44 4290.89 12377.62 62.50 4443.91 12512.89 55.04 4502.64 12631.48 58.34 4356.98 12268.53 61.92 4591.27 12754.80 67.65 4696.96 13407.75 67.68 4621.40 13480.21 70.30 4562.84 13673.28 75.26 4202.52 13239.71 71.44 4296.49 13557.69 76.36 4435.23 13901.28 81.71 4105.18 13200.58 92.60 4116.68 13406.97 90.60 3844.49 12538.12 92.23 3720.98 12419.57 94.09 3674.40 12193.88 102.79 3857.62 12656.63 109.65 3801.06 12812.48 124.05 3504.37 12056.67 132.69 3032.60 11322.38 135.81 3047.03 11530.75 116.07 2962.34 11114.08 101.42
Names of X columns:
x1 x2 x3
Method
ward
ward
single
complete
average
mcquitty
median
centroid
# of (top) clusters to display
ALL
ALL
2
3
4
5
6
7
8
9
10
15
20
Horizontal
FALSE
FALSE
TRUE
Triangle
FALSE
FALSE
TRUE
Chart options
Title:
Label y-axis:
Label x-axis:
R Code
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) mysub <- paste('Method: ',par1) bitmap(file='test1.png') 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() 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) bitmap(file='test2.png') 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) } load(file='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='mytable1.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='mytable2.tab') }
Compute
Summary of computational transaction
Raw Input
view raw input (R code)
Raw Output
view raw output of R engine
Computing time
0 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation