Send output to:
Browser Blue - Charts White
Browser Black/White
CSV
Data X:
356.2 152823.6 3 12.9 359.5 123780.5 2.9 13.6 368.4 159987.1 2.9 13.7 371 139603.7 2.8 14.1 397.5 177831.2 2.6 15.2 416.7 173656.9 2.5 15.7 413.2 252392 2.8 13 424.3 228029 2.8 13 415 197300 2.8 12.9 421.7 214088 2.7 13.2 422.1 160275 2.7 13.1 429.2 186851 2.7 13.6 452.1 227777 2.5 14.4 471.5 246899 2.4 14.9 488.3 295338 2.3 15.3 506.2 243847 2.3 15.8 517.3 324602 2.2 16.2 538.6 347066 2.3 15.8 545.3 407916 2.6 12.8 546.7 312914 2.7 12.3 540.3 326127 2.7 12.3 549.2 394369 2.6 12.6 563.9 310078 2.5 12.9 581.7 422770 2.5 12.9 590.7 417974 2.4 13.4 594.1 402347 2.5 13.1 604 360809 2.4 13.1 628.1 298289 2.3 13.7 662.4 375873 2.2 14.5 688.6 407210 2.2 15 705.9 413968 2.3 15 701.5 457532 2.4 14.3 686.2 695731 2.5 13.5 645.7 544623 2.5 12.7 668.7 292833 2.4 13.1 696.7 534403 2.4 13.3 715.5 517030 2.3 13.8 741.4 455714 2.2 14 754.3 471401 2.2 14.1 771.3 451493 2 15 797.7 480615 2 15.2 809.9 568272 2.2 14.2 790.1 650780 2.4 12.7 830.3 553643 2.4 13 847.7 780711 2.3 13.2 834.8 650724 2.4 13 824.5 586345 2.5 12.4 764.6 725173 2.5 12.3 780 701257 2.6 11.9 803.2 859063 2.5 12.2 751.1 789842 2.7 11.5 755.2 512707 2.7 11.4 708.2 780845 3.1 10.1 685.4 637804 3 10.4 680 640694 3.4 10.7 710.6 553416 3.3 11.2 702.8 554622 3.5 10.7 656.3 616736 4.1 9.2 575.6 536994 4.7 7.6 567.2 407237 4.4 8 545.2 618796 5.4 6.6
Names of X columns:
Aandelen_koersen Verhandeld_kapitaal Algemeen_rendement K/W-verhouding
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