plot_patient_trees_scores: Plot the scores for a patient's trees.

View source: R/plot_patient_trees_scores.R

plot_patient_trees_scoresR Documentation

Plot the scores for a patient's trees.

Description

Plots a barplot where each tree is a bar, with height proportional to the tree score and colour to its particular combination of transfer.

Usage

plot_patient_trees_scores(
  x,
  patient,
  transfer_palette = distinct_palette_few,
  ...
)

Arguments

x

A REVOLVER object.

patient

The id of a patient.

transfer_palette

A function that can be used to sample an arbitrary number of colours to identify the transfers.

Value

A ggplot plot.

See Also

Other Plotting functions: distinct_palette_few(), distinct_palette_many(), gradient_palette(), plot_DET_index(), plot_clusters(), plot_dendrogram(), 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()

Examples

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

plot_patient_trees_scores(TRACERx_NEJM_2017_REVOLVER, 'CRUK0001')
plot_patient_trees_scores(TRACERx_NEJM_2017_REVOLVER, 'CRUK0002')

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