hclustView: Cluster and view cluster tree

Description Usage Arguments Value Author(s) Examples

View source: R/hclustView.R

Description

Cluster and view cluster tree

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

Plot figure on open device.

Author(s)

Wubing Zhang

Examples

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

MAGeCKFlute documentation built on Nov. 8, 2020, 5:40 p.m.