make_forest_plot: Create a forest plot

View source: R/make_forest_plot.R

make_forest_plotR Documentation

Create a forest plot

Description

Create a forest plot

Usage

make_forest_plot(
  d,
  .measure_var,
  .group_var,
  xlab = NULL,
  ylab = NULL,
  ci_low,
  ci_high,
  xintercept = NULL
)

Arguments

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_low

ci_high

Maximum confidence interval variable Defaults to ci_high

xintercept

Value of x-intercept for vertical dotted line

Value

A ggplot plot

See Also

pivot_longer, ggplot


sbw78/sbwtools documentation built on May 20, 2024, 9 a.m.