plot_clustree: Plot MRtree results as a dendrogram. If reference labels are...

View source: R/plot_utils.R

plot_clustreeR Documentation

Plot MRtree results as a dendrogram. If reference labels are provided, a pie chart is shown at each tree node, detailing the label proprotions.

Description

Plot MRtree results as a dendrogram. If reference labels are provided, a pie chart is shown at each tree node, detailing the label proprotions.

Usage

plot_clustree(labelmat, prefix = NULL, ref.labels = NULL, plot.ref = TRUE, ...)

Arguments

labelmat

clustering results saved in a label matrix n-by-number of partitions

prefix

string indicating columns containing clustering information

ref.labels

reference labels to be shown at each tree node

plot.ref

boolean wheather to color the tree node by the major type

...

other parameter to pass to clustree function according to reference labels

Examples

plot_clustree(labelmat = clust_example$clusterings, ref.labels = clust_example$ref.labels)

pengminshi/MRtree documentation built on March 6, 2023, 4:20 p.m.