Description Usage Arguments Details Value Examples
A generic convenience function that draws forest plots with default settings.
1 |
x |
An object of class |
... |
Additional arguments in |
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)
None
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")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.