Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
-4 -13 23 5 15 -14 -25 43 2 9 -18 -26 60 3 10 -8 -9 36 3 9 -1 1 28 7 14 1 3 23 8 18 2 6 23 7 18 0 2 22 7 12 1 5 22 6 16 0 5 24 6 12 -1 0 32 7 19 -3 -5 27 5 13 -3 -4 27 5 12 -3 -2 27 5 13 -4 -1 29 4 11 -8 -8 38 4 10 -9 -16 40 4 16 -13 -19 45 1 12 -18 -28 50 -1 6 -11 -11 43 3 8 -9 -4 44 4 6 -10 -9 44 3 8 -13 -12 49 2 8 -11 -10 42 1 9 -5 -2 36 4 13 -15 -13 57 3 8 -6 0 42 5 11 -6 0 39 6 8 -3 4 33 6 10 -1 7 32 6 15 -3 5 34 6 12 -4 2 37 6 13 -6 -2 38 5 12 0 6 28 6 15 -4 -3 31 5 13 -2 1 28 6 13 -2 0 30 5 16 -6 -7 39 7 14 -7 -6 38 4 12 -6 -4 39 5 15 -6 -4 38 6 14 -3 -2 37 6 19 -2 2 32 5 16 -5 -5 32 3 16 -11 -15 44 2 11 -11 -16 43 3 13 -11 -18 42 3 12 -10 -13 38 2 11 -14 -23 37 0 6 -8 -10 35 4 9 -9 -10 37 4 6 -5 -6 33 5 15 -1 -3 24 6 17 -2 -4 24 6 13 -5 -7 31 5 12 -4 -7 25 5 13 -6 -7 28 3 10 -2 -3 24 5 14 -2 0 25 5 13 -2 -5 16 5 10 -2 -3 17 3 11 2 3 11 6 12 1 2 12 6 7 -8 -7 39 4 11 -1 -1 19 6 9 1 0 14 5 13 -1 -3 15 4 12 2 4 7 5 5 2 2 12 5 13 1 3 12 4 11 -1 0 14 3 8 -2 -10 9 2 8 -2 -10 8 3 8
Names of X columns:
Method
ward
ward
single
complete
average
mcquitty
median
centroid
# of (top) clusters to display
20
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