labels.meta | R Documentation |
Create study labels for forest plot.
## S3 method for class 'meta'
labels(
object,
author = object$studlab,
year = "",
citation = NULL,
layout = "JAMA",
data = object$data,
...
)
object |
An object of class |
author |
An optional vector providing study authors. |
year |
An optional vector providing year of publication. |
citation |
An optional vector providing citation numbers. |
layout |
A character string specifying layout. Either "JAMA" or "Lancet". |
data |
An optional data frame containing the study information. |
... |
Additional arguments (ignored at the moment). |
This auxiliary function can be used to create study labels in JAMA or Lancet layout which can be added to a forest plot using argument 'studlab'.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
forest.meta
data(Fleiss1993bin)
refs <- 20 + 1:7
m <- metabin(d.asp, n.asp, d.plac, n.plac, data = Fleiss1993bin,
studlab = study, sm = "OR", random = FALSE)
forest(m,
studlab = labels(m, year = year, citation = refs, layout = "JAMA"),
layout = "JAMA", fontfamily = "Times", fontsize = 10)
forest(m,
studlab = labels(m, year = year, citation = refs, layout = "Lancet"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.