Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
97.3 93.5 93.5 124.9 101 94.7 94.7 132 113.2 112.9 112.9 151.4 101 99.2 99.2 108.9 105.7 105.6 105.6 121.3 113.9 113 113 123.4 86.4 83.1 83.1 90.3 96.5 81.1 81.1 79.3 103.3 96.9 96.9 117.2 114.9 104.3 104.3 116.9 105.8 97.7 97.7 120.8 94.2 102.6 102.6 96.1 98.4 89.9 89.9 100.8 99.4 96 96 105.3 108.8 112.7 112.7 116.1 112.6 107.1 107.1 112.8 104.4 106.2 106.2 114.5 112.2 121 121 117.2 81.1 101.2 101.2 77.1 97.1 83.2 83.2 80.1 112.6 105.1 105.1 120.3 113.8 113.3 113.3 133.4 107.8 99.1 99.1 109.4 103.2 100.3 100.3 93.2 103.3 93.5 93.5 91.2 101.2 98.8 98.8 99.2 107.7 106.2 106.2 108.2 110.4 98.3 98.3 101.5 101.9 102.1 102.1 106.9 115.9 117.1 117.1 104.4 89.9 101.5 101.5 77.9 88.6 80.5 80.5 60 117.2 105.9 105.9 99.5 123.9 109.5 109.5 95 100 97.2 97.2 105.6 103.6 114.5 114.5 102.5 94.1 93.5 93.5 93.3 98.7 100.9 100.9 97.3 119.5 121.1 121.1 127 112.7 116.5 116.5 111.7 104.4 109.3 109.3 96.4 124.7 118.1 118.1 133 89.1 108.3 108.3 72.2 97 105.4 105.4 95.8 121.6 116.2 116.2 124.1 118.8 111.2 111.2 127.6 114 105.8 105.8 110.7 111.5 122.7 122.7 104.6 97.2 99.5 99.5 112.7 102.5 107.9 107.9 115.3 113.4 124.6 124.6 139.4 109.8 115 115 119 104.9 110.3 110.3 97.4 126.1 132.7 132.7 154 80 99.7 99.7 81.5 96.8 96.5 96.5 88.8 117.2 118.7 118.7 127.7 112.3 112.9 112.9 105.1 117.3 130.5 130.5 114.9 111.1 137.9 137.9 106.4 102.2 115 115 104.5 104.3 116.8 116.8 121.6 122.9 140.9 140.9 141.4 107.6 120.7 120.7 99 121.3 134.2 134.2 126.7 131.5 147.3 147.3 134.1 89 112.4 112.4 81.3 104.4 107.1 107.1 88.6 128.9 128.4 128.4 132.7 135.9 137.7 137.7 132.9 133.3 135 135 134.4 121.3 151 151 103.7 120.5 137.4 137.4 119.7 120.4 132.4 132.4 115 137.9 161.3 161.3 132.9 126.1 139.8 139.8 108.5 133.2 146 146 113.9 146.6 154.6 154.6 142.9 103.4 142.1 142.1 95.2 117.2 120.5 120.5 93
Names of X columns:
A B C D
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