hrforest_plot.hr.RdPlots hazard ratios for analyses resulting from estimate_ipwhr,
relative to their respective control groups.
# S3 method for hr
forest_plot(
...,
alpha = 0.05,
legend_title = "Treatment \nGroups",
colors = "Dark2",
boot_method = "log-normal"
)Objects that inherit class hr, as produced by
estimate_ipwhr(), or a single list of such objects. Supports splicing and
unquoting as supported by rlang::list2.
The desired nominal significance level of the confidence intervals. Default is 0.05.
A string used to title the legend, default is "Treatment Groups"
Set colors for resulting ggplot object. Either a vector of
strings which are interpreted as RGB codes or a sinlge string that
identifies a color brewer palette. If set to NULL, plot_impl will use
grey shades. As a default, this uses the color brewer palette 'Dark2'.
Character string specifying the bootstrap CI method. One
of "normal", "log-normal", "percentile", or "basic". Default is
"log-normal". Only used when bootstrap replicates are present and ic = FALSE.
A ggplot object giving hazard ratios for each analysis and treatment group, relative to their respective control groups.
Note this is identical to plot.hr.