barplot.rob | R Documentation |
Produce weighted bar plot of risk of bias assessment
## S3 method for class 'rob'
barplot(
height,
overall = FALSE,
weighted = TRUE,
colour = "cochrane",
quiet = FALSE,
...
)
height |
An object of class |
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
|
quiet |
A logical to suppress the display of the bar plot. |
... |
Additional arguments (ignored) |
This is a wrapper function for rob_summary
of
R package robvis to produce a weighted bar plot of risk of
bias assessment.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
rob
, traffic_light
,
rob_summary
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.