Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

forestplot

Forest plot


Description

Plots the effect sizes and standard errors for a set of studies as a standard forest plot. Also shown are the priors for each study.

Usage

forestplot(x, range = NULL, xlab = "Effect size", ylab = "Study", ...,
  labels = NULL)

Arguments

x

An object of the class EV.

range

A numeric vector of length two that sets the range of the x-axis. Values are passed to xlim. Sensible default values are used when range = NULL.

xlab, ylab

Text for the x and y axes labels.

...

Other options passed to plot().

labels

Names for studies to be plotted on the y-axis. If NULL, then numbers are used.

Details

This function plots results from the ev.combo() function. The results may be hard to visualise if the effect sizes differ greatly, and it may be preferable to standardise the effect sizes by setting scale = TRUE in the ev.combo() function.

Value

A forest plot.

See Also

Examples

x <- ev.combo( beta = c(0.0126, 5.0052, 1.2976, 0.0005),
       se.beta = c(0.050, 2.581, 2.054, 0.003) )
forestplot(x)

BayesCombo

Bayesian Evidence Combination

v1.0
GPL-3
Authors
Bruno Contrino, Stanley E. Lazic
Initial release
2017-02-06

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.