Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
109.8 148.8 118.3 110.3 111.7 146.7 127.3 114.8 98.6 118.8 112.3 94.6 96.9 99.4 114.9 92 95.1 97.6 108.2 93.8 97 110.2 105.4 93.8 112.7 146.6 122.1 107.6 102.9 136.4 113.5 101 97.4 126.2 110 95.4 111.4 154.9 125.3 96.5 87.4 109 114.3 89.2 96.8 128.5 115.6 87.1 114.1 144.9 127.1 110.5 110.3 136.3 123 110.8 103.9 134.8 122.2 104.2 101.6 103.4 126.4 88.9 94.6 106.6 112.7 89.8 95.9 119.2 105.8 90 104.7 149.3 120.9 93.9 102.8 150.2 116.3 91.3 98.1 142.9 115.7 87.8 113.9 163.6 127.9 99.7 80.9 98.2 108.3 73.5 95.7 138.2 121.1 79.2 113.2 143.7 128.6 96.9 105.9 132.8 123.1 95.2 108.8 149.4 127.7 95.6 102.3 128.8 126.6 89.7 99 98.9 118.4 92.8 100.7 106.2 110 88 115.5 140.7 129.6 101.1 100.7 133 115.8 92.7 109.9 156.4 125.9 95.8 114.6 157.7 128.4 103.8 85.4 107.9 114 81.8 100.5 133.6 125.6 87.1 114.8 148.1 128.5 105.9 116.5 205.6 136.6 108.1 112.9 193.1 133.1 102.6 102 117.5 124.6 93.7 106 116.4 123.5 103.5 105.3 129.5 117.2 100.6 118.8 157.1 135.5 113.3 106.1 157 124.8 102.4 109.3 158.4 127.8 102.1 117.2 161.7 133.1 106.9 92.5 116.9 125.7 87.3 104.2 161.1 128.4 93.1 112.5 155.7 131.9 109.1 122.4 160.8 146.3 120.3 113.3 145.4 140.6 104.9 100 111 129.5 92.6 110.7 144.8 132.4 109.8 112.8 149.2 125.9 111.4 109.8 156.6 126.9 117.9 117.3 182.5 135.8 121.6 109.1 171.3 129.5 117.8 115.9 172.7 130.2 124.2 96 133 133.8 106.8 97.6 148.1 123.3 100.9
Names of X columns:
Totaal Delfstoffen Voeding Metaal
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