labels.meta: Create study labels for forest plot

View source: R/labels.meta.R

labels.metaR Documentation

Create study labels for forest plot

Description

Create study labels for forest plot.

Usage

## S3 method for class '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).

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

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

forest.meta

Examples

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


guido-s/meta documentation built on April 18, 2024, 7:11 p.m.