Colored Dendrogram
Description
This is a colored dendrogram. Each cluster have its color. Plus, the plot displays a factor below in order to compare it with the clusters resulting of the tree cut. On the left is shown the evolution of the hubertgamma criterion.Note
Vote (between 0 and 100) :
Requirements
source code
| Download or view | ||
| RGraphGallery(79,12,8) |
packages
The following packages will be needed to produce that graph
| fpc |
| A2R |
Keywords
add a keywordjust click a keyword to associate it to that graph. If you don't find what you are looking for, you may also create a new keyword.
3D
bioconductor
Cluster analysis
Dimension:
bivariate
multivariate
univariate
histogram
Mathematical annotations
Quantile regression
Rcore:
colors
core
fonts
system:
graphics
grid
lattice
rgl
triplot
Var:
circular
factor
numeric
TimeSeries
View:
distribution
linear relation
spatial
trees
See also ...
Wiki page
Warning: fopen(http://wiki.r-project.org/rwiki/doku.php?id=graph_gallery:graph79&do=export_raw) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in /mnt/114/free.fr/2/c/addictedtor/graphiques/scriptsphp/bottom_graph.php on line 181
Warning: fread(): supplied argument is not a valid stream resource in /mnt/114/free.fr/2/c/addictedtor/graphiques/scriptsphp/bottom_graph.php on line 182
require(fpc) require(A2R) # get that package from # http://addictedtor.free.fr/packages d.usa <- dist(USArrests, "euc") h.usa <- hclust(d.usa, method="ward") set.seed(1) some.factor <- letters[1:4][rbinom(50, prob=0.5, size=3)+1] hubertgamma <- rep(0,10) for(i in 1:10){ hubertgamma[i] <- cluster.stats(d.usa, cutree(h.usa, k=i+1), G2 = FALSE, G3 = FALSE, silhouette = FALSE)$hubertgamma } A2Rplot(h.usa, k=3, fact.sup=some.factor, criteria=hubertgamma, boxes = FALSE, col.up = "gray", col.down = c("orange","royalblue","green3"))