plot.metaanalysis: Forestplot for metaanalysis object.

View source: R/metaanalysis.R

plot.metaanalysisR Documentation

Forestplot for metaanalysis object.

Description

Forestplot for metaanalysis object.

Usage

## S3 method for class 'metaanalysis'
plot(x, type = "both", xlims = NULL, ...)

Arguments

x

metaanalysis object from the RTSA package.

type

Define whether or not both fixed-effect and random-effects meta-analysis results should be printed on the plot. Options are: "fixed", "random" or "both". Default is "both".

xlims

Set default limits on the outcome scale. Default is NULL.

...

Additional arguments

Examples

# Example with OR 
ma <- metaanalysis(data = coronary, outcome = "OR")
plot(ma)

# Example with RR 
ma <- metaanalysis(data = perioOxy, outcome = "RR")
plot(ma)

# Example with MD
ma <- metaanalysis(data = eds, outcome = "MD")
plot(ma, type = "random")

RTSA documentation built on Nov. 23, 2023, 9:11 a.m.