Skip to content

mglev1n/forestplotR

Repository files navigation

forestplotR

Lifecycle: experimental R-CMD-check

The goal of forestplotR is to enable users to create forest plots from a dataframe

Installation

You can install the development version of forestplotR from GitHub with:

# install.packages("devtools")
devtools::install_github("mglev1n/forestplotR")

Usage

This is a basic example of creating a forest plot from an example dataset

library(forestplotR)

plot_forest(mr_res_example, cols_left = dplyr::vars("Protein" = exposure), effect = or, effect_signif = 3, ci_lower = or_lci95, ci_upper = or_uci95, ci_signif = 3, p_value = pval, width_ratio = c(0.5, 3, 1.5), xmin = min(c(1, mr_res_example$or_lci95)), xmax = max(c(1, mr_res_example$or_uci95)), style = "OR")

About

Generates Forest Plots

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages