drawForest: Draw a forest plot

Description Usage Arguments Details See Also

View source: R/direct.R

Description

Draw a forest plot

Usage

1
drawForest(meta, showFixed = TRUE, showRandom = TRUE, ...)

Arguments

meta

an object of class c("metagen", "meta"), c("metacont", "meta") or c("metabin", "meta") as returned by the functions metagen, metabin or metacont in the package meta

showFixed, showRandom

Logical indicating whether fixed effect and/or random effects results should be shown on the forest plot. By default both are shown set the appropriate argument to FALSE if you want to exclude that result from the plot.

...

additional arguments to be passed to forest e.g. col.square='red', col.diamond='black', smlab='Odds Ratio'

Details

This function provides a very simple wrapper around forest from the meta package. The main purpose is to allow some defaults to be set for the arguments to forest and to work out a reasonable scale for the x-axis automatically.

By default pooled estimates for both fixed and random effects models will be shown. If there is only one study comparing a given pair of treatments then the results of that study are shown but no pooled estimates are displayed.

@return NULL

See Also

forest


RichardBirnie/mautils documentation built on July 12, 2019, 8:56 p.m.