Overview
All molpathR plot functions return ggplot2 objects, so you can
customize them with standard ggplot2 syntax.
library(molpathR)
db <- mp_example_db(n_patients = 150, seed = 42)
Survival analysis
# Overall survival by diagnosis
mp_plot_survival(db, group_by = "diagnosis", type = "os")

# Compare recorded TP53 variants with no recorded TP53 variant
mp_plot_survival(db, group_by = "TP53", type = "os")

The gene groups describe database records only. A patient with no
recorded variant is not established to be wild-type; assay coverage is
unavailable.