View source: R/make_forest_plot.R
make_forest_plot | R Documentation |
Create a forest plot
make_forest_plot(
d,
.measure_var,
.group_var,
xlab = NULL,
ylab = NULL,
ci_low,
ci_high,
xintercept = NULL
)
d |
A data frame in long format that has boundary values for a confidence interval |
.measure_var |
Numeric variable to be plotted on the x-axis |
.group_var |
Factor or character variable to differentiate plots |
xlab |
Label for x-axis |
ylab |
Label for y-axis |
ci_low |
Minimum confidence interval variable. Defaults to |
ci_high |
Maximum confidence interval variable Defaults to |
xintercept |
Value of x-intercept for vertical dotted line |
A ggplot plot
pivot_longer
, ggplot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.