Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
97.40 104.20 65.40 95.40 97.00 103.20 72.20 98.70 105.40 112.70 80.40 99.90 102.70 106.40 77.70 98.60 98.10 102.60 76.50 100.30 104.50 110.60 100.10 100.20 87.40 95.20 73.50 100.40 89.90 89.00 77.30 101.40 109.80 112.50 98.60 103.00 111.70 116.80 112.40 109.10 98.60 107.20 77.30 111.40 96.90 113.60 139.30 114.10 95.10 101.80 75.40 121.80 97.00 102.60 64.20 127.60 112.70 122.70 86.80 129.90 102.90 110.30 79.10 128.00 97.40 110.50 71.70 123.50 111.40 121.60 100.00 124.00 87.40 100.30 82.10 127.40 96.80 100.70 74.80 127.60 114.10 123.40 92.30 128.40 110.30 127.10 83.30 131.40 103.90 124.10 83.70 135.10 101.60 131.20 148.00 134.00 94.60 111.60 71.40 144.50 95.90 114.20 71.20 147.30 104.70 130.10 84.60 150.90 102.80 125.90 80.90 148.70 98.10 119.00 80.60 141.40 113.90 133.80 105.50 138.90 80.90 107.50 79.20 139.80 95.70 113.50 78.40 145.60 113.20 134.40 92.60 147.90 105.90 126.80 88.30 148.50 108.80 135.60 98.20 151.10 102.30 139.90 157.40 157.50 99.00 129.80 73.90 167.50 100.70 131.00 80.90 172.30 115.50 153.10 93.00 173.50 100.70 134.10 84.90 187.50 109.90 144.10 96.20 205.50 114.60 155.90 106.50 195.10 85.40 123.30 81.70 204.50 100.50 128.10 82.90 204.50 114.80 144.30 96.00 201.70 116.50 153.00 92.60 207.00 112.90 149.90 116.50 206.60 102.00 150.90 155.00 210.60 106.00 141.00 95.10 211.10 105.30 138.90 86.20 215.00 118.80 157.40 105.00 223.90 106.10 142.90 89.70 238.20 109.30 151.70 97.10 238.90 117.20 161.00 120.80 229.60 92.50 138.50 92.20 232.20 104.20 135.90 98.80 222.10 112.50 151.50 104.10 221.60 122.40 164.00 106.50 227.30 113.30 159.10 113.40 221.00 100.00 157.00 192.40 213.60 110.70 142.10 103.60 243.40 112.80 144.80 97.60 253.80 109.80 152.10 99.90 265.30 117.30 154.60 106.20 268.20 109.10 148.70 104.90 268.50 115.90 157.70 114.20 266.90 95.70 146.70 94.50 268.40
Names of X columns:
Indprod omzet invest prijsgs
Method
ward
ward
single
complete
average
mcquitty
median
centroid
# of (top) clusters to display
20
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