Collect classes from HierarchicalPartition object

# S4 method for 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

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))