Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
1332.7 744.8 64.5 53.3 1343.8 672.1 57.9 66.9 1421.6 666.6 72.5 73.7 1329.8 760.8 82.9 71.9 1306.8 756 62.7 67.9 1412.8 604.4 66.6 77.5 1358.1 883.9 70.9 82 1163.9 527.9 56.3 40.5 1467.9 756.2 81.2 76.2 1433.7 812.9 67.8 75 1362.2 655.6 57.2 64 1299 707.6 62.8 77.2 1291.5 612.6 51.2 63.9 1452.7 659.2 66.5 71.4 1555.4 833.4 71.5 71.3 1402.5 727.8 67.8 50 1242.9 797.2 56.9 47.9 1514.6 753 90.6 55.2 1308.6 762 64.1 61.8 1239.3 613.7 65.7 53.6 1519.9 759.2 77.9 60 1659.4 816.4 84.2 72.7 1597.6 736.8 81.7 63.6 1340.6 680.1 65.9 62.1 1427.2 736.5 76.1 58.1 1438.1 637.2 80.1 68.1 1616.2 801.9 74.3 65.5 1392.8 772.3 86.5 59.3 1318.7 897.3 70.9 65.7 1420.9 792.1 91.5 68.3 1221 826.8 93.7 77.8 1310 666.8 77.5 49.1 1466.7 906.6 100.3 96.9 1299.3 871.4 85.7 64.6 1640 891 95 67 1506.3 739.2 73.7 64.6 1530.2 833.6 87.6 84.3 1661.9 715.6 87.6 72.6 1880.3 871.6 92.9 71.3 1230.8 751.6 80.7 52.8 1406.5 1005.5 74 63.9 1523.5 681.2 87.7 67.9 1323.2 837.3 68.2 74.1 1319.2 674.7 117.4 61.7 1500.7 806.3 100.1 74.1 1483 860.2 97.7 83.5 1497 689.8 101.1 75.6 1219.8 691.6 87.6 77.9 1472.9 682.6 83.2 69.2 1423.9 800.1 85.9 67.8 1629.6 1023.7 118 74.8 1353.4 733.5 87.3 69.7 1366.8 875.3 79.5 69.9 1527.1 770.2 93.2 84.3 1487.6 1005.7 99.2 81.7 1478.6 982.3 66.6 69.3 1536.7 742.9 83.9 83.8 1682.1 974.2 100.4 96 1576.5 822.3 73.5 74.2 1280.5 773.2 60.8 70.4
Names of X columns:
Verenigd_Koninkrijk Verenigde_Staten_van_Amerika Canada Australie
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