MyNixOS website logo
Description

Visualize the Results of Risk-of-Bias (ROB) Assessments.

Helps users in quickly visualizing risk-of-bias assessments performed as part of a systematic review. It allows users to create weighted bar-plots of the distribution of risk-of-bias judgments within each bias domain, in addition to traffic-light plots of the specific domain-level judgments for each study. The resulting figures are of publication quality and are formatted according the risk-of-bias assessment tool use to perform the assessments. Currently, the supported tools are ROB2.0 (for randomized controlled trials; Sterne et al (2019) <doi:10.1136/bmj.l4898>), ROBINS-I (for non-randomised studies of interventions; Sterne et al (2016) <doi:10.1136/bmj.i4919>), and QUADAS-2 (for diagnostic accuracy studies; Whiting et al (2011) <doi:10.7326/0003-4819-155-8-201110180-00009>).

robvis

Project Status: Active – The project has reached a stable, usablestate and is being activelydeveloped. BuildStatus AppVeyor BuildStatus Codecov testcoverage metaverseIdentifier

UPDATE: robvis now exists as a web-app, aimed at those who are not familiar with R or who want to explore the package’s functionality before installing it locally.

Description

The robvis package takes the summary table from risk-of-bias assessments, converts it to tidy data, and produces summary plots formatted according to the assessment tool used.

Getting started

First ensure you have the devtools package installed:

install.packages("devtools")
library(devtools)

Then, to install:

install_github("mcguinlu/robvis")
library(robvis)

To update the package, run the install_github("mcguinlu/robvis") command again.

Load data

To load your own data from a .csv file:

mydata <- read.csv("path/to/mydata.csv", header = TRUE)

To help users explore robvis, we have included example datasets in the package, one for each of the tool templates that currently exist within the package. The data_rob2 dataset (view it here), which contains example risk-of-bias assessments performed using the RoB2.0 tool for randomized controlled trials, is used to create the plots in subsequent sections.

Create plots

The package contains two plotting functions:

1. rob_summary()

Returns a ggplot object displaying a weighted barchart of the risk of bias of included studies across the domains of the specified tool.

summary_rob <- rob_summary(data = data_rob2, tool = "ROB2")
summary_rob

2. rob_traffic_light()

Returns a ggplot object displaying a “traffic light plot”, displaying the risk of bias judgment in each domain for each study.

trafficlight_rob <- rob_traffic_light(data = data_rob2, tool = "ROB2")
trafficlight_rob

Other functions

rob_tools()

Outputs a list of the risk of bias assessment tools for which a template currently exists in rob_summary(). We expect this list to be updated in the near future to include tools such as ROBIS (tool for assessing risk of bias in systematic reviews).

rob_tools()
[1] "ROB2"
[1] "ROBINS-I"
[1] "QUADAS-2"
[1] "ROB1"

Advanced usage

Change the colour scheme

The colour argument of both plotting functions allows users to select from two predefined colour schemes (“cochrane” or “colourblind”) or to define their own palette by providing a vector of hex codes.

For example, to use the predefined “colourblind” palette:

summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", colour = "colourblind")
summary_rob

And to define your own colour scheme:

summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", colour = c("#f442c8","#bef441","#000000"))
summary_rob

Created an unweighted summary barplot

By default, the rob_summary() function creates a barplot weighted by some measure of a study’s precision. This can be prevented using the “weighted” argument. For example, compare the following two plots:

summary_rob <- rob_summary(data = data_rob2, tool = "ROB2")
summary_rob
summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", weighted = FALSE)
summary_rob

Editing the plots

Finally, because the output (summary_rob and trafficlight_rob in the examples above) is a ggplot2 object, it is easy to adjust the plot to your own preferences.

For example, to add a title to the unweighted RoB2.0 plot created above:

library(ggplot2)

summary_rob +
  ggtitle("Summary of RoB2.0 assessments")

Code of conduct

Please note that the ‘robvis’ project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

Acknowledgments

  • The rob_summary() function was based on code forwarded by a colleague. I recently discovered that this code was adapted from that presented in the wonderful “Doing Meta-Analysis in R” guide, so I would like to acknowledge the authors here.
  • Emily Kothe for help in fixing ggplot2 coding issues.
  • Eliza Grames for creating the robvis hex sticker.
Metadata

Version

0.3.0

License

Unknown

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows