barplot.rob {meta}R Documentation

Produce weighted bar plot of risk of bias assessment

Description

Produce weighted bar plot of risk of bias assessment

Usage

## S3 method for class 'rob'
barplot(
  height,
  overall = FALSE,
  weighted = TRUE,
  colour = "cochrane",
  quiet = FALSE,
  ...
)

Arguments

height

An object of class rob.

overall

A logical indicating whether to include a bar for overall risk of bias in the figure.

weighted

A logical indicating whether weights should be used in the bar plot.

colour

Specify colour scheme for the bar plot; see rob_summary.

quiet

A logical to suppress the display of the bar plot.

...

Additional arguments (ignored)

Details

This is a wrapper function for rob_summary of R package robvis to produce a weighted bar plot of risk of bias assessment.

Author(s)

Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de

See Also

rob, traffic_light, rob_summary

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: 
# Weighted bar plot (if R package robvis has been installed)
barplot(rob(m2))

## End(Not run)

# Use previous settings
settings.meta(oldset)


[Package meta version 7.0-0 Index]