Plot the predictive prior, experimental observation, and Gaussian posterior
distributions for one sample and perturbation from the output of
calculate_powerup_posteriors(). The posterior target-event region is shaded
relative to the response cutoff.
Arguments
- posteriors
Posterior results returned by
calculate_powerup_posteriors().- perturbation
A single perturbation name to plot.
- sample
A single sample name to plot.
- response_cutoff
Optional response cutoff used for the posterior target-event probability and event-region shading. If
NULL, use the cutoff stored inposteriors.- fixed_axis
If
TRUE, useaxis_limits; otherwise derive the x-axis from the plotted distributions.- axis_limits
Numeric vector of length two used when
fixed_axis = TRUE.- colors
Named character vector giving colors for
prior,observation, andposterior.
Examples
if (FALSE) { # \dontrun{
posteriors <- calculate_powerup_posteriors(predictions, observations)
plot_posterior(
posteriors,
perturbation = "CTNNB1",
sample = "Sample_A"
)
} # }