forest_plot: Generate a forest plot

View source: R/plots.R

forest_plotR Documentation

Generate a forest plot

Description

Generate a forest plot using ggplot2. This function has capability to be split into multiple forests and was generated to display Mendelian randomization results with a binary outcome.

Usage

forest_plot(
  dat,
  col_num,
  group = NA,
  y_axis,
  units = NULL,
  title = NULL,
  scale = 1,
  null_at = 1,
  text_size = "norm",
  meta = FALSE,
  f_var = "facet_var"
)

Arguments

dat

a data.frame containing the data

group

group

y_axis

y-axis

units

units

title

title

scale

scale

null_at

null at

text_size

text size

meta

meta-analysis?

f_var

facet variable name

Value

forest plot


thomasbattram/usefunc documentation built on April 24, 2023, 1:46 p.m.