Learn R Programming

MetABEL (version 0.0-3)

forestplot: Forest plot

Description

Function to draw meta-analysis forest plots

Usage

forestplot(estimate, se, labels = paste("Study", c(1:length(estimate))), CI = 0.95, xexp = FALSE, ...)

Arguments

estimate
vector of effect estimates
se
vector of standard errors
labels
individual study labels
CI
confidence interval, e.g. 0.95
xexp
whether the effect values are to be depicted on exponential scale
...
arguments passed to plot function, e.g. main = "My plot"

Examples

Run this code
beta <- c(0.16,0.091,0.072,-0.03)
s <- c(0.07,0.042,0.048,0.12)
forestplot(beta,s,main="Example plot")

Run the code above in your browser using DataLab