forestplot: Forest plot

Description Usage Arguments Details Value See Also Examples

View source: R/forestplot.R

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

1
2
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

ev.combo

Examples

1
2
3
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 documentation built on May 29, 2017, 10:21 a.m.