metaDF2Matrix: Convert 'metaDF' Objects to Matrices

Description Usage Arguments Details See Also Examples

Description

A generic function that turns 'metaDF' objects into a character matrix used for plotting.

Usage

1

Arguments

df

Either an object of class 'metabinDF', or an object of class 'metacontDF'. See 'Details'.

...

Other arguments.

Details

df can be any object from the generic function meta2DF(). It is converted into a matrix for plotting by the function drawMeta().

See Also

metaDF2Matrix.metabinDF, metaDF2Matrix.metacontDF, drawMeta

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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, title = "Thrombolytic Therapy" ,
                rowOrder = "effect", decreasing = TRUE)
matrix <- metaDF2Matrix(Data,
                        order = c("study", "event.e", "event.c", "effect",
                                  "ci", "w.fixed", "w.random"),
                        roundCols = c("effect" = 2, "w.fixed" = 1,
                                      "w.random" = 1),
                        hgap = c(2, 8, 11), vgap = 5,
                        newCols = list(ci = makeCIDesc("e.lower", "e.upper",
                                                        2, c("[", "]"))))
matrix

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