Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
59.9 8.6 13.5 -12.7 59.9 8.6 16.2 -2.4 59.9 8.5 17.6 7.1 60.9 8.4 15.8 -3.9 60.9 8.3 17.6 9.5 60.9 8.3 15.2 5 61.1 8.2 15.9 -16.1 61.1 8.2 12 -10.8 61.1 8.1 13.3 7 60.2 8 14.8 13.6 60.2 8 16.1 8.1 60.2 7.9 16.9 -8.1 60.1 7.8 17.6 4.9 60.1 7.8 13.9 -0.8 60.1 7.8 10 4.3 59.7 7.8 7.6 4 59.7 7.8 7.1 1.5 59.7 7.8 8.1 5.4 60.5 7.8 8.1 -11.3 60.5 7.8 7.7 -16.4 60.5 7.8 4 -2 59.5 7.9 1.4 8.9 59.5 7.9 0.3 -7.2 59.5 7.9 -1 -18 59.5 8 -1.9 1.3 59.5 8 -1.5 6.3 59.5 8 -0.2 -6 59.7 8.1 3.4 2.8 59.7 8.1 3 2 59.7 8.2 4.1 5.1 60.4 8.3 3.4 -7.6 60.4 8.3 3.2 -18.6 60.4 8.3 6.1 5.8 60 8.4 5.8 20.3 60 8.5 6.2 0.7 60 8.5 5.8 -11.2 59 8.6 5.9 -5.7 59 8.6 6.7 -0.1 59 8.7 5.9 3.4 59.3 8.6 3.8 3.3 59.3 8.7 1.7 -1.2 59.3 8.7 1.4 4.2 59.7 8.6 1.8 -8.8 59.7 8.6 3 -25.3 59.7 8.7 3.6 8.5 60.4 8.7 4.8 14.5 60.4 8.7 4.3 -3.1 60.4 8.7 4.2 -10.4 59.9 8.7 2.9 -2.9 59.9 8.7 4.9 0.3 59.9 8.8 7.2 22.6 60.5 8.8 8.7 15.4 60.5 8.8 9.1 9 60.5 8.8 8.9 29.1 60.4 8.8 9 2.8 60.4 8.8 11.6 -3.8 60.4 8.8 9.6 27.7 60.6 8.8 9.1 28.9 60.6 8.9 9.2 26.5 60.6 8.9 10.8 19.8 60.9 8.9 11 13.2 60.9 8.9 8.5 14.1 60.9 9 6.5 34.1 61 8.9 7.2 30 61 8.9 7.8 21.8 61 8.9 8.7 32.1 61.2 8.8 7.8 5.3 61.2 8.8 7.5 3 61.2 8.8 7.7 17.1 61.2 8.8 7.5 26.3 61.2 8.7 8.3 38.1 61.2 8.6 7.9 19.5 60.3 8.7 10.4 38 60.3 8.6 11.5 35.5 60.3 8.6 14 78.6 60.4 8.4 11.9 62.2 60.4 8.4 11.9 76.9 60.4 8.3 10.3 104.9 61.2 8.1 11.3 32.2 61.2 8.1 9.9 42.5 61.2 8 8.9 64.3 62.1 8 9.2 74.9 62.1 7.9 8.8 75.4 62.1 7.8 6.7 43 61.7 7.7 7.1 58.7 61.7 7.6 6.6 55.4 61.7 7.6 7.2 76.6 61.6 7.5 5 63.3 61.6 7.5 5.3 78.9 61.6 7.4 6.3 82.7
Names of X columns:
WG WL EA TI
Method
ward
single
complete
average
mcquitty
median
centroid
# of (top) clusters to display
ALL
2
3
4
5
6
7
8
9
10
15
20
Horizontal
FALSE
TRUE
Triangle
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