Internal function for drawing plot. Do not use this directly, call `funnel_plot()` instead.
draw_plot(
mod_plot_agg,
x_label,
y_label,
title,
label_outliers,
multiplier,
Poisson_limits,
OD_adjust,
Tau2 = 0,
method,
yrange,
xrange
)
data frame of containing numerator, denominator, ratio/proportion, SEs and limits
Title for the funnel plot x-axis. Usually expected deaths, readmissions, incidents etc.
Title for the funnel plot y-axis. Usually a standardised ratio.
Plot title
Add group labels to outliers on plot. Accepted values are\: 95 or 99 corresponding to 95% or 99.8% quantiles of the distribution. Default=99
Scale relative risk and funnel by this factor. Default to 1, but 100 is used for HSMR
Draw exact limits based only on data points with no iterpolation. (default=FALSE)
Draw overdispersed limits using Spiegelhalter's (2012) Tau2 (default=TRUE)
The Tau2 value to use for plotting limits
to pass to limit calculation (\"SHMI\" or \"CQC\")
Specify the plot range. Default is "auto", else vector of length 2 e.g. c(0,200)
Specify the plot range. Default is "auto", else vector of length 2 e.g. c(0,200)
A list containing [1] the funnel plot as a ggplot2 object., [2]the limits table.