Skip to contents

Plot a forest plot using the data from get_forest_plot_data

Usage

plot_forest(data, intercept = TRUE, MA_mean = TRUE)

Arguments

data

A tibble containing the data required to plot a forest plot

intercept

Logical. Should a horizontal line be added at 0?

MA_mean

Logical. Should a dashed line be added at the meta-analytic mean?

Value

A ggplot object

Examples

data(ManyEcoEvo_results)
model <- ManyEcoEvo_results %>% pluck("MA_mod", 1) 
plot_data <- get_forest_plot_data(model)
plot_forest(plot_data)

plot_forest(plot_data, intercept = FALSE)

plot_forest(plot_data, MA_mean = FALSE)

plot_forest(plot_data, intercept = FALSE, MA_mean = FALSE)