Learn R Programming

MetABEL (version 0.2-0)

forestplot: Function to draw meta-analysis forest plots

Description

This function creates forest plots from meta-analysis data.

Usage

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

Arguments

estimate
Vector of effect estimates
se
Vector of standard errors
labels
Vector of labels for the individual studies (default: Study 1, Study 2, etc.)
CI
Confidence interval (default: 0.95)
xexp
Whether the effect values are to be depicted on an exponential scale (default: FALSE)
xlab
Label for the horizontal axis (default: $\beta$)
ylab
Label for the horizontal axis (default: empty)
...
Arguments passed to the plot function, e.g. main="My plot"

Examples

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

Run the code above in your browser using DataLab