Plot summary statistics across clonal simulation conditions
plot_clonal_comparison.RdProduces a faceted box-plot grid: one panel per summary statistic, one box
per condition. If observed_stats is supplied (output of
compute_observed_stats()), a horizontal dashed line is added to each
panel showing the observed value.
Usage
plot_clonal_comparison(
results,
observed_stats = NULL,
stats = c("hotspot_mean_cn", "hotspot_max_cn", "hotspot_fraction_amp",
"hotspot_cn_var", "max_cn_global", "mean_breakpoints", "n_alive"),
fill_var = "condition"
)Arguments
- results
Output of
compare_clonal_params().- observed_stats
Optional named numeric vector from
compute_observed_stats(). A horizontal reference line is drawn in each panel for statistics present in bothresultsandobserved_stats.- stats
Character vector of statistic names to plot.
- fill_var
Column name to use for box fill colour. Default
"condition".