hclustView: Cluster and view cluster tree

Description Usage Arguments Value Note Author(s) Examples

View source: R/hclustView.R

Description

Cluster and view cluster tree

Usage

1
2
hclustView(d, method = "average", label_cols = NULL, bar_cols = NULL,
  main = NA, xlab = NA, horiz = TRUE, ...)

Arguments

d

A dissimilarity structure as produced by dist.

method

The agglomeration method to be used. This should be (an unambiguous abbreviation of) one of "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC).

label_cols

A vector to be used as label's colors for the dendrogram.

bar_cols

Either a vector or a matrix, which will be plotted as a colored bar.

main

As in 'plot'.

xlab

As in 'plot'.

horiz

Logical indicating if the dendrogram should be drawn horizontally or not.

...

Arguments to be passed to methods, such as graphical parameters (see par).

Value

Just plot figure in device.

Note

See the vignette for an example of hclustView Note that the source code of hclustView is very simple. The source can be found by typing MAGeCKFlute:::hclustView or getMethod("hclustView"), or browsed on github at https://github.com/WubingZhang/MAGeCKFlute/tree/master/R/hclustView.R Users should find it easy to customize this function.

Author(s)

Wubing Zhang

Examples

1
2
label_cols = rownames(USArrests)
hclustView(dist(USArrests), label_cols=label_cols, bar_cols=label_cols)

WubingZhang/ggView documentation built on Sept. 4, 2020, 4:28 p.m.