Learn R Programming

meta (version 6.0-0)

labels.meta: Create study labels for forest plot

Description

Create study labels for forest plot.

Usage

# S3 method for meta
labels(
  object,
  author = object$studlab,
  year = "",
  citation = NULL,
  layout = "JAMA",
  data = object$data,
  ...
)

Arguments

object

An object of class meta.

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).

Author

Guido Schwarzer sc@imbi.uni-freiburg.de

Details

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'.

See Also

forest.meta

Examples

Run this code
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"))

Run the code above in your browser using DataLab