Simple forest plot


We will here use the dessin_forest_simple function in the Data & Functions page.
Download Forest_autom.R

# Libraries
library(forestplot) # version 3.1.1
library(dplyr)
# Data used
base_data <- data.frame(
  variable = c("var1", "var2", "var3", "var4", "var5", "var6", "var7"), 
  mean  = c(0.578, 0.165, 0.246, 0.700, 0.348, 0.139, 1.017), 
  lower = c(0.372, 0.018, 0.072, 0.333, 0.083, 0.016, 0.365),
  upper = c(0.898, 1.517, 0.833, 1.474, 1.455, 1.209, 2.831)
  )

dessin_forest_simple function


dessin_forest_simple(base_data)

dessin_forest_simple(base_data, name_col_var = "Parameter", name_col_mean = "HR", 
                                 zero = 1, IC = FALSE, digit=2, lwd.ci=2, clip=NULL, by=0.5)




Contact

This document is a work of the statistics team in the Biostatistics and Medical Information Department at Saint-Louis Hospital in Paris (SBIM).
Based on The R Graph Gallery by Yan Holtz.