shipunov (version 1.5)

Bclabels: Plot bootstrap values

Description

Print (bootstrap) values on 'hclust' plot

Usage

Bclabels(hcl, values, coords=NULL, horiz=FALSE, method="text", threshold=NULL, ...)

Arguments

hcl

hclust object

values

numeric, (bootstrap) values to use

coords

If NULL (default), coordinates will be calculated with Hcoords(hcl)

horiz

Plot values for a horizontal tree?

method

If "text" (default), plot text values, if "points", plot points

threshold

If set, do not plot text or points for values < threshold

...

If "text" (default), additional arguments to text(), if "points", to points()

Value

List with components: 'coords' for coordinates, 'labels' for (selected) values.

Details

This low-level plot function plots text or points in accordance with bootstrap values to the corresponding node of the plotted 'hclust' object.

See Also

Bclust

Examples

Run this code
# NOT RUN {
bb <- Bclust(t(moldino)) # specify 'mc.cores=4' or similar to speed up the process
plot(bb$hclust)
Bclabels(bb$hclust, bb$values, col="red", pos=3, offset=0.1, threshold=0.5)
# }

Run the code above in your browser using DataLab