plot_dendrogram: Plot the dendrogram of REVOLVER"s clusters.

View source: R/plot_dendrogram.R

plot_dendrogramR Documentation

Plot the dendrogram of REVOLVER"s clusters.

Description

Plot the dendrogram of REVOLVER"s clusters, where leaves are patient ids, coloured by cluster.

Usage

plot_dendrogram(x, cluster_palette = distinct_palette_few)

Arguments

x

A REVOLVER object with fits and clusters.

clusters_palette

A palette function that should return the colour of an arbitrary number of clusters.

Value

A ggplot plot.

See Also

Other Plotting functions: distinct_palette_few(), distinct_palette_many(), gradient_palette(), plot_DET_index(), plot_clusters(), plot_drivers_clonality(), plot_drivers_graph(), plot_drivers_occurrence(), plot_jackknife_cluster_stability(), plot_jackknife_coclustering(), plot_jackknife_trajectories_stability(), plot_patient_CCF_histogram(), plot_patient_data(), plot_patient_mutation_burden(), plot_patient_oncoprint(), plot_patient_trees_scores()

Examples

# Data released in the 'evoverse.datasets'
data('TRACERx_NEJM_2017_REVOLVER', package = 'evoverse.datasets')

plot_dendrogram(TRACERx_NEJM_2017_REVOLVER)

caravagn/revolver documentation built on May 21, 2022, 5:48 p.m.