View source: R/traffic_light.R
traffic_light | R Documentation |
Produce traffic light plot of risk of bias assessment
traffic_light(object, colour = "cochrane", psize = 15, quiet = FALSE)
object |
An object of class |
colour |
Specify colour scheme for the traffic light plot; see
|
psize |
Size of the traffic lights. |
quiet |
A logical to suppress the display of the traffic light plot. |
This is a wrapper function for
rob_traffic_light
of R package robvis
to produce a traffic light plot of risk of bias assessment.
Guido Schwarzer guido.schwarzer@uniklinik-freiburg.de
rob
, barplot.rob
,
rob_traffic_light
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.