Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
7.5 9.4 63.3 7.6 9.5 102.9 7.9 9.1 107.6 7.9 9 93 8.1 9.3 84.1 8.2 9.9 89.7 8 9.8 90.1 7.5 9.4 103.4 6.8 8.3 95.6 6.5 8 90.4 6.6 8.5 104.1 7.6 10.4 82.8 8 11.1 69 8 10.9 105.1 7.7 9.9 104.3 7.5 9.2 95.4 7.6 9.2 93 7.7 9.5 89.3 7.9 9.6 85.2 7.8 9.5 96.4 7.5 9.1 93.1 7.5 8.9 83.3 7.1 9 98.4 7.5 10.1 76.9 7.5 10.3 66.3 7.6 10.2 98.6 7.7 9.6 92.3 7.7 9.2 96.1 7.9 9.3 84.4 8.1 9.4 85.8 8.2 9.4 94.6 8.2 9.2 101.5 8.1 9 86 7.9 9 91.1 7.3 9 101.8 6.9 9.8 79.4 6.6 10 67.3 6.7 9.9 98.1 6.9 9.3 104.7 7 9 102.9 7.1 9 82.8 7.2 9.1 94.5 7.1 9.1 93.1 6.9 9.1 103.6 7 9.2 89.9 6.8 8.8 92.5 6.4 8.3 103.5 6.7 8.4 86.9 6.7 8.1 69.5 6.4 7.8 97.1 6.3 7.9 109.8 6.2 7.9 96.6 6.5 8 75.8 6.8 7.9 127.5 6.8 7.5 93.4 6.5 7.2 87.7 6.3 6.9 94 5.9 6.6 84 5.9 6.7 90.1 6.4 7.3 81.5 6.4 7.5 58.6
Names of X columns:
x y z
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