📦 cran / robvis

:exclamation: This is a read-only mirror of the CRAN R package repository. robvis — Visualize the Results of Risk-of-Bias (ROB) Assessments. Homepage: https://github.com/mcguinlu/robvis Report bugs for this package: https://github.com/mcguinlu/robvis

2 stars 0 forks 👁 2 watching ⚖️ Other
📥 Clone https://github.com/cran/robvis.git
HTTPS git clone https://github.com/cran/robvis.git
SSH git clone git@github.com:cran/robvis.git
CLI gh repo clone cran/robvis
Luke McGuinness Luke McGuinness version 0.3.0 7020b52 6 years ago 📝 History
📂 master View all commits →
📁 build
📁 data
📁 inst
📁 man
📁 R
📁 tests
📁 vignettes
📄 LICENSE
📄 MD5
📄 NAMESPACE
📄 NEWS.md
📄 README.md
📄 README.md

robvis

Project Status: Active – The project has reached a stable, usable
state and is being actively
developed. Build
Status AppVeyor Build
Status Codecov test
coverage metaverse
Identifier 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: `` r install.packages("devtools") library(devtools) ` Then, to install: ` r install_github("mcguinlu/robvis") library(robvis) ` To update the package, run the installgithub("mcguinlu/robvis") command again. ### Load data To load your own data from a .csv file: ` r 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 datarob2 dataset ([view it here](https://github.com/mcguinlu/robvis/blob/master/data_raw/data_rob2.csv)), 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. ` r summary_rob <- rob_summary(data = data_rob2, tool = "ROB2") summary_rob ` <img src="man/figures/README-unnamed-chunk-5-1.png" width="90%" /> #### 2\. rob\_traffic\_light() Returns a ggplot object displaying a [“traffic light plot”](https://handbook-5-1.cochrane.org/chapter_8/figure_8_6_c_example_of_a_risk_of_bias_summary_figure.htm), displaying the risk of bias judgment in each domain for each study. ` r trafficlight_rob <- rob_traffic_light(data = data_rob2, tool = "ROB2") trafficlight_rob ` <div style="text-align:center"> <img src="man/figures/rob2trafficlight.png" width="70%" height="70%"/> </div> ### 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: ` r summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", colour = "colourblind") summary_rob ` <img src="man/figures/README-unnamed-chunk-8-1.png" width="90%" /> And to define your own colour scheme: ` r summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", colour = c("#f442c8","#bef441","#000000")) summary_rob ` <img src="man/figures/README-unnamed-chunk-9-1.png" width="90%" /> ### Created an unweighted summary barplot By default, the robsummary() 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: ` r summary_rob <- rob_summary(data = data_rob2, tool = "ROB2") summary_rob ` <img src="man/figures/README-unnamed-chunk-10-1.png" width="90%" /> ` r summary_rob <- rob_summary(data = data_rob2, tool = "ROB2", weighted = FALSE) summary_rob ` <img src="man/figures/README-unnamed-chunk-11-1.png" width="90%" /> ### Editing the plots Finally, because the output (summaryrob and trafficlightrob 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: ` r library(ggplot2) summary_rob + ggtitle("Summary of RoB2.0 assessments") ` <img src="man/figures/README-unnamed-chunk-12-1.png" width="90%" /> ## Code of conduct Please note that the ‘robvis’ project is released with a [Contributor Code of Conduct](https://github.com/mcguinlu/robvis/blob/master/CODE_OF_CONDUCT.md). 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](https://github.com/mcguinlu/robvis/blob/master/LICENSE) file for details. ## Acknowledgments - The robsummary() 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](https://bookdown.org/MathiasHarrer/Doing_Meta_Analysis_in_R/plotting-the-summary.html)” guide, so I would like to acknowledge the authors here. - [Emily Kothe](https://github.com/ekothe) for help in fixing ggplot2 coding issues. - [Eliza Grames](https://github.com/elizagrames) for creating the robvis` hex sticker.