
Shared skeleton for a nominal-vs-empirical calibration plot
Source:R/plotting.R
calibration_plot.RdThe Monte-Carlo band, the diagonal reference line, the equal-aspect
[0, 1] x [0, 1] frame and the minimal theme are the same figure in
plot_coverage() and plot_tarp(); only the curve drawn on top (one per
parameter, with a legend, for plot_coverage(); a single curve for
plot_tarp()) and the title differ. This builds the shared part and
leaves the caller to add its own ggplot2::geom_line() and
ggplot2::labs() on top.
Arguments
- df
Base data for the plot, inherited by whatever curve layer the caller adds afterward.
- band
A data frame with
nominal,loandhicolumns (seebinom_band()), shaded as the Monte-Carlo uncertainty ribbon.- xlab, ylab
Axis labels.