Plots 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"
)

Arguments

...

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.

alpha

The desired nominal significance level of the confidence intervals. Default is 0.05.

legend_title

A string used to title the legend, default is "Treatment Groups"

colors

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'.

boot_method

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.

Value

A ggplot object giving hazard ratios for each analysis and treatment group, relative to their respective control groups.

Details

Note this is identical to plot.hr.

Author

Brendan Brown