Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
97.6 93.4 83.6 113.5 99.5 101.1 86.5 106.9 110.7 114.2 96 119.5 104.4 104.8 91 109.4 99.8 113.3 87.2 106.8 108.4 118.2 84.5 118.7 91.8 83.6 59.1 109 90.2 73.9 61.6 112.9 109.2 99.5 98.8 125.1 111.4 97.7 97.9 126.6 102.8 103 92.8 122.6 91.5 106.3 84.2 127.4 98.9 92.2 74.6 107.1 100.8 101.8 79.8 112 112.1 122.8 86.7 122.1 106.7 111.8 79.8 111.7 103.5 106.3 87 113.1 111.3 121.5 91.3 128.2 100.8 81.9 58.7 115.2 94.2 85.4 62.8 117.4 115.5 110.9 87.8 132 114.1 117.3 90.4 130.8 105 106.3 80.6 128 94 105.6 73.5 132.8 98.3 101.2 71.5 116.9 96 105.9 70.6 110.9 101.8 126.3 78.3 123.6 102.5 111.9 76 117.4 98.7 108.9 77.4 122.6 110.7 127.2 80.9 123.5 88.7 94.2 63.5 111.4 89.2 85.7 58 113.8 106.8 116.2 88.2 131.2 104.1 107.2 81.2 126.9 103.2 110.5 84.9 126.1 93.7 112 76.4 121.2 100.5 104.4 71.5 118.7 98.7 112 76.1 117.9 111.1 132.8 82.9 135.3 104.5 110.8 78.1 120.7 105 128.7 82 126.3 109.7 136.8 84.7 129.7 92.6 94.8 55.7 113.3 94.2 88.8 59.5 120.5 111.7 123.2 83.2 135.5 113.4 125.3 87.6 137.5 106.8 122.7 76.2 130.7 98 125.8 76.4 133.1 104.2 116.3 68.2 121.5 105.4 118.6 70 120.5 117.5 142.1 76.3 137 107.9 127.9 70.9 123.6 107 132 72.5 128.5 113.3 152.4 80.1 135 97.6 110.8 57.4 120.8 98.2 99.1 62.7 121.2 111.3 134.9 82.6 132.1 116 133.2 88.9 134.5 108.1 131 80.5 133.6 95.6 133.9 72.1 135.9 110.8 119.9 69.4 124.5
Names of X columns:
Intermediaire Investering Duurzamecons Nietduurzamecons
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