collect_classes-HierarchicalPartition-method: Collect classes from HierarchicalPartition object

collect_classes-HierarchicalPartition-methodR Documentation

Collect classes from HierarchicalPartition object

Description

Collect classes from HierarchicalPartition object

Usage

## S4 method for signature 'HierarchicalPartition'
collect_classes(object, merge_node = merge_node_param(),
    show_row_names = FALSE, row_names_gp = gpar(fontsize = 8),
    anno = get_anno(object[1]), anno_col = get_anno_col(object[1]), ...)

Arguments

object

A HierarchicalPartition-class object.

merge_node

Parameters to merge sub-dendrograms, see merge_node_param.

show_row_names

Whether to show the row names.

row_names_gp

Graphic parameters for row names.

anno

A data frame of annotations for the original matrix columns. By default it uses the annotations specified in hierarchical_partition.

anno_col

A list of colors (color is defined as a named vector) for the annotations. If anno is a data frame, anno_col should be a named list where names correspond to the column names in anno.

...

Other arguments.

Details

The function plots the hierarchy of the classes.

Value

No value is returned.

Author(s)

Zuguang Gu <z.gu@dkfz.de>

Examples

data(golub_cola_rh)
collect_classes(golub_cola_rh)
collect_classes(golub_cola_rh, merge_node = merge_node_param(depth = 2))

jokergoo/cola documentation built on Feb. 29, 2024, 1:41 a.m.