traffic_light: Produce traffic light plot of risk of bias assessment

View source: R/traffic_light.R

traffic_lightR Documentation

Produce traffic light plot of risk of bias assessment

Description

Produce traffic light plot of risk of bias assessment

Usage

traffic_light(object, colour = "cochrane", psize = 15, quiet = FALSE)

Arguments

object

An object of class rob.

colour

Specify colour scheme for the traffic light plot; see rob_summary.

psize

Size of the traffic lights.

quiet

A logical to suppress the display of the traffic light plot.

Details

This is a wrapper function for rob_traffic_light of R package robvis to produce a traffic light plot of risk of bias assessment.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

rob, barplot.rob, rob_traffic_light

Examples

# Use RevMan 5 settings
oldset <- settings.meta("RevMan5")

data(caffeine)

m1 <- metabin(h.caf, n.caf, h.decaf, n.decaf, sm = "OR",
  data = caffeine, studlab = paste(study, year))

# Add risk of bias assessment to meta-analysis
m2 <- rob(D1, D2, D3, D4, D5, overall = rob, data = m1, tool = "rob2")

# Print risk of bias assessment
rob(m2)

## Not run: 
# Traffic light plot (if R package robvis has been installed)
traffic_light(rob(m2))

## End(Not run)

# Use previous settings
settings.meta(oldset)


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