Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
118.4 111.4 104.0 121.4 114.1 107.9 128.8 121.8 113.8 131.7 127.6 113.8 141.7 129.9 123.1 142.9 128.0 125.1 139.4 123.5 137.6 134.7 124.0 134.0 125.0 127.4 140.3 113.6 127.6 152.1 111.5 128.4 150.6 108.5 131.4 167.3 112.3 135.1 153.2 116.6 134.0 142.0 115.5 144.5 154.4 120.1 147.3 158.5 132.9 150.9 180.9 128.1 148.7 181.3 129.3 141.4 172.4 132.5 138.9 192.0 131.0 139.8 199.3 124.9 145.6 215.4 120.8 147.9 214.3 122.0 148.5 201.5 122.1 151.1 190.5 127.4 157.5 196.0 135.2 167.5 215.7 137.3 172.3 209.4 135.0 173.5 214.1 136.0 187.5 237.8 138.4 205.5 239.0 134.7 195.1 237.8 138.4 204.5 251.5 133.9 204.5 248.8 133.6 201.7 215.4 141.2 207.0 201.2 151.8 206.6 203.1 155.4 210.6 214.2 156.6 211.1 188.9 161.6 215.0 203.0 160.7 223.9 213.3 156.0 238.2 228.5 159.5 238.9 228.2 168.7 229.6 240.9 169.9 232.2 258.8 169.9 222.1 248.5 185.9 221.6 269.2 190.8 227.3 289.6 195.8 221.0 323.4 211.9 213.6 317.2 227.1 243.4 322.8 251.3 253.8 340.9 256.7 265.3 368.2 251.9 268.2 388.5 251.2 268.5 441.2 270.3 266.9 474.3 267.2 268.4 483.9 243.0 250.8 417.9 229.9 231.2 365.9 187.2 192.0 263.0
Names of X columns:
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