Internal function for drawing plot. Do not use this directly, call `funnel_plot()` instead.
draw_plot(
mod_plot_agg,
limits,
x_label,
y_label,
title,
label,
multiplier,
draw_unadjusted,
draw_adjusted,
target,
min_y,
max_y,
min_x,
max_x,
data_type,
sr_method,
theme,
plot_cols,
max.overlaps
)
A list containing [1] the funnel plot as a ggplot2 object., [2]the limits table.
data.frame of containing numerator, denominator, ratio/proportion, SEs and limits
data.frame of limits from set_plot_range().
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
Whether to label outliers, highlighted groups, both or none. Default is "outlier", by accepted values are: "outlier", "highlight", "both" or "NA".
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 calculated target value for the data type
Specify the plot range.
Specify the plot range.
Specify the plot range.
Specify the plot range.
the data type SR, PR or RC.
CQC or SHMI methods for standardised ratios
a ggplot theme function.