metaPlot: Forest Plot Function

Description Usage Arguments Details Value Examples

Description

A generic convenience function that draws forest plots with default settings.

Usage

1

Arguments

x

An object of class 'metabin', 'metacont', 'metaDF', or 'metaM'.

...

Additional arguments in drawMeta.

Details

This function provides a convenient way to draw forest plots in only onestep. It assumes default values for intermediate functions meta2DF and metaDF2Matrix if input is a meta-analysis object.

If x is a meta-analysis object, calling metaPlot(x) is same as doing the following steps:

DF <- meta2DF(x), Matrix <- metaDF2Matrix(DF), drawMeta(Matrix)

Value

None

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
library(meta)
data(Olkin95)
meta1 <- metabin(event.e, n.e, event.c, n.c, data = Olkin95, 
                 subset = c(41,47,51,59), sm = "RR", method = "I")
Data <- meta2DF(meta1)     
matrix <- metaDF2Matrix(Data)                          
### input metabin object  
metaPlot(meta1)
### input metaDF object 
metaPlot(Data)
### input metaM object 
metaPlot(matrix)
### additional drawMeta() arguments 
metaPlot(meta1, plotCol = 2, plotHead = "Relative Risk") 

pmur002/metaplot documentation built on May 25, 2019, 10:21 a.m.