Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

oldCutplot.dendrogram

Plot Subtrees of a Dendrogram in Different Colors


Description

Plot a dendrogram, cut the tree at a given height, and draw the resulting subtrees in different colors (OLD version, to be deprecated)

Usage

oldCutplot.dendrogram(x, h, cluscol, leaflab = "none", horiz = FALSE, lwd = 3, ...)

Arguments

x

a dendrogram.

h

the height at which the dendrogram is cut.

cluscol

the colors used for the subtrees; defaults to rainbow.

leaflab

indicates how leaf labels are to be drawn< defaults to 'perpendicular'.

horiz

logical indicating whether to plot the dendrogram horizontally or vertically.

lwd

the line width used for the color subtrees.

...

arguments to plot.dendrogram.

Details

This routine makes use of the functions plot.dendrogram and plotNode in package stats.

Author(s)

Alexander Ploner <Alexander.Ploner@ki.se>

See Also

Examples

data(swiss)
cc = as.dendrogram(hclust(dist(swiss)))
oldCutplot.dendrogram(cc, h=80)

Heatplus

Heatmaps with row and/or column covariates and colored clusters

v2.36.0
GPL (>= 2)
Authors
Alexander Ploner <Alexander.Ploner@ki.se>
Initial release
2015-09-03

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.