Plot a forest plot with panels of text
panel_forest_plot(
forest_data,
mapping = aes(estimate, xmin = conf.low, xmax = conf.high),
panels = default_forest_panels(),
trans = I,
funcs = NULL,
format_options = list(colour = "black", shape = 15, banded = TRUE, text_size = 5,
point_size = 5),
theme = theme_forest(),
limits = NULL,
breaks = NULL,
recalculate_width = TRUE,
recalculate_height = TRUE,
exclude_infinite_cis = TRUE
)
data.frame
with the data needed for both the plot and text
mapping aesthetic created using aes
list
with details of the panels that make up the plot (See Details)
transform for scales
optional list of functions required for formatting panels$display
formatting options as a list as generated by forest_model_format_options
theme to apply to the plot
limits of the forest plot on the X-axis (taken as the range of the data by default)
breaks to appear on the X-axis (note these will be exponentiated
if exponentiate == TRUE
)
TRUE
to recalculate panel widths using the current device
or the desired plot width in inches
TRUE
to shrink text size using the current device
or the desired plot height in inches
whether to exclude points and confidence intervals
that go to positive or negative infinity from plotting. They will still be
displayed as text. Defaults to TRUE
, since otherwise plot is malformed
A ggplot ready for display or saving