Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
116.1 102.5 102.0 101.3 100.6 100.9 104.2 108.3 108.9 109.9 106.8 112.7 113.4 101.3 97.8 95.0 93.8 94.5 101.4 105.8 106.6 109.7 108.8 113.4 113.7 103.6 98.2 95.5 94.4 95.9 103.2 104.1 127.6 130.3 133.0 140.4 123.5 116.9 115.9 113.1 112.1 112.4 118.9 117.4 115.6 120.7 114.9 122.0 119.6 114.6 118.4 110.9 111.6 114.6 112.1 117.4 114.8 123.4 118.1 121.9 123.3 117.1 107.0 107.0 111.0 108.2 96.3 100.9 107.7 106.2 118.7 116.1 118.1 118.4 110.8 106.4 112.2 108.3 96.0 100.6 107.8 108.4 120.9 117.3 119.7 119.6 111.8 108.1 111.8 105.5 93.6 103.9 100.3 106.6 118.4 106.6 109.8 115.9 111.7 119.8 116.1 103.2 99.0 112.3 104.2 114.0 121.7 107.2 112.8 117.8 113.3 116.1 111.8 110.2 110.0 102.9 110.1 102.7 118.7 109.0 115.7 118.1 118.9 108.8 115.6 95.0 92.8 108.9 109.8 106.1 102.8 98.4 85.7 114.6 129.4 117.7 126.6 103.8 101.5 118.7 119.6 114.8 109.9 106.3 95.0 124.5 140.4 128.8 137.5 113.3 110.3 129.1 128.4 120.3 113.6 96.9 124.7 126.4 131.9 122.5 113.1 99.8 116.0 115.0 114.0 111.0 91.7 90.6 103.3 106.7 111.2 102.9 126.5 115.1 110.2 110.1 103.3 107.7 103.9 114.0 117.2 117.0 116.5 100.3 97.6 89.1 99.1 94.9 96.5 92.6 80.8 89.5 101.4 95.9 92.3 91.2 88.3 80.7 89.9 87.2 86.9 82.8 72.6 81.3 91.2 87.3 83.4 81.7 80.2 74.1 80.6 79.0 79.3 71.2 78.1 68.2 81.0 106.9 123.7 73.7 69.2 72.5 75.7 73.5 70.4 65.7 68.1 62.4 64.7 77.7 85.9 61.0 57.4 75.1 75.9 71.8 72.3 67.3 71.5 67.6 74.2 77.6 76.4 74.2
Names of X columns:
BeVlWalBr
Method
complete
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