Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
112.6 105.1 88.8 113.8 113.3 93.4 107.8 99.1 92.6 103.2 100.3 90.7 103.3 93.5 81.6 101.2 98.8 84.1 107.7 106.2 88.1 110.4 98.3 85.3 101.9 102.1 82.9 115.9 117.1 84.8 89.9 101.5 71.2 88.6 80.5 68.9 117.2 105.9 94.3 123.9 109.5 97.6 100.0 97.2 85.6 103.6 114.5 91.9 94.1 93.5 75.8 98.7 100.9 79.8 119.5 121.1 99.0 112.7 116.5 88.5 104.4 109.3 86.7 124.7 118.1 97.9 89.1 108.3 94.3 97.0 105.4 72.9 121.6 116.2 91.8 118.8 111.2 93.2 114.0 105.8 86.5 111.5 122.7 98.9 97.2 99.5 77.2 102.5 107.9 79.4 113.4 124.6 90.4 109.8 115.0 81.4 104.9 110.3 85.8 126.1 132.7 103.6 80.0 99.7 73.6 96.8 96.5 75.7 117.2 118.7 99.2 112.3 112.9 88.7 117.3 130.5 94.6 111.1 137.9 98.7 102.2 115.0 84.2 104.3 116.8 87.7 122.9 140.9 103.3 107.6 120.7 88.2 121.3 134.2 93.4 131.5 147.3 106.3 89.0 112.4 73.1 104.4 107.1 78.6 128.9 128.4 101.6 135.9 137.7 101.4 133.3 135.0 98.5 121.3 151.0 99.0 120.5 137.4 89.5 120.4 132.4 83.5 137.9 161.3 97.4 126.1 139.8 87.8 133.2 146.0 90.4 146.6 154.6 97.1 103.4 142.1 79.4 117.2 120.5 85.0
Names of X columns:
Metaal Machines Apparaten
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
1 seconds
R Server
Big Analytics Cloud Computing Center
Click here to blog (archive) this computation