robvis

A package to quickly visualise risk-of-bias assessment results

https://github.com/mcguinlu/robvis

Science Score: 46.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
    Found 5 DOI reference(s) in README
  • Academic publication links
    Links to: scholar.google
  • Committers with academic emails
    3 of 8 committers (37.5%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (23.0%) to scientific vocabulary

Keywords

evidence-synthesis risk-of-bias systematic-reviews visualisation
Last synced: 6 months ago · JSON representation

Repository

A package to quickly visualise risk-of-bias assessment results

Basic Info
Statistics
  • Stars: 65
  • Watchers: 4
  • Forks: 25
  • Open Issues: 19
  • Releases: 1
Topics
evidence-synthesis risk-of-bias systematic-reviews visualisation
Created almost 7 years ago · Last pushed almost 2 years ago
Metadata Files
Readme Changelog Contributing License Code of conduct

README.Rmd

---
output: github_document
---



```{r setup, include = FALSE}
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-", 
  out.width = "90%",
  fig.width= 12,
  fig.height=3)

fig_count <- 1
```
# robvis 


[![Project Status: Active – The project has reached a stable, usable state and is being actively developed.](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
[![CRAN Badge.](https://www.r-pkg.org/badges/version-ago/robvis)](https://CRAN.R-project.org/package=robvis)
[![CRAN Downloads.](https://cranlogs.r-pkg.org/badges/last-month/robvis)](https://CRAN.R-project.org/package=robvis)

[![R build status](https://github.com/mcguinlu/robvis/workflows/R-CMD-check/badge.svg)](https://github.com/mcguinlu/robvis/actions) [![Codecov test coverage](https://codecov.io/gh/mcguinlu/robvis/branch/master/graph/badge.svg)](https://codecov.io/gh/mcguinlu/robvis?branch=master)
[![DOI](https://img.shields.io/static/v1.svg?label=Publication&message=10.1002/jrsm.1411&color=informational)](https://doi.org/10.1002/jrsm.1411) [![metaverse Identifier](https://img.shields.io/static/v1.svg?label=Part%20of%20the&message=metaverse&color=informational)](https://www.github.com/rmetaverse/metaverse) **UPDATE**: `robvis` now exists as a [web-app](https://mcguinlu.shinyapps.io/robvis), aimed at those who are not familiar with R or who want to explore the package's functionality before installing it locally. ## Description ```{r include = FALSE} library(robvis) ``` The `robvis` (Risk-Of-Bias VISualization) package facilitates the rapid production of publication-quality risk-of-bias assessment figures, correctly formatted according to the assessment tool used. The motivation for this package is more fully described in the (open access) article introducing the tool, available [here](https://doi.org/10.1002/jrsm.1411). ## Getting started Install the development version which contains new functionality and a range of bug fixes: ```{r, eval=FALSE} install.packages("devtools") devtools::install_github("mcguinlu/robvis") ``` To update the package, run the `install_github("mcguinlu/robvis")` command again. If you wish to use the older CRAN version of the package, use the following command: ```{r, eval=FALSE} install.packages("robvis") ``` ### Load data To load your own data from a .csv file: ```{r, eval=FALSE} 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](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 bar-chart of the risk of bias of included studies across the domains of the specified tool. [*Note: the defaults used in this function have changed from their original settings, so that a un-weighted barplot is now produced by default. See the NEWS.md file for further information.*] ```{r, eval = FALSE} summary_rob <- rob_summary(data = data_rob2, tool = "ROB2") summary_rob ``` ``` {r, echo = FALSE} plot <- rob_summary(data = data_rob2, tool = "ROB2") file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
#### 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, eval=FALSE} trafficlight_rob <- rob_traffic_light(data = data_rob2, tool = "ROB2", psize = 10) trafficlight_rob ``` ``` {r, echo = FALSE} plot <- rob_traffic_light(data = data_rob2, tool = "ROB2", psize = 10) file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
### Other functions #### rob_save() Pass the `robvis` to this function, along with a destination file, to save your risk-of-bias plots using sensible defaults. ```{r, eval = FALSE} rob_save(trafficlight_rob, "rob_fig.png") ``` #### 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). ```{r} rob_tools() ``` ## 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, eval=FALSE} rob_summary(data = data_rob2, tool = "ROB2", colour = "colourblind") ``` ``` {r, echo = FALSE} plot <- rob_summary(data = data_rob2, tool = "ROB2", colour = "colourblind") file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
And to define your own colour scheme: ```{r, eval=FALSE} rob_summary( data = data_rob2, tool = "ROB2", colour = c("#f442c8", "#bef441", "#000000", "#d16684") ) ``` ``` {r, echo = FALSE} plot <- rob_summary(data = data_rob2, tool = "ROB2", colour = c("#f442c8", "#bef441", "#000000", "#d16684")) file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
### No "Overall" judgement By default, both functions include an "Overall" risk of bias domain. To prevent this, remove the overall column from your dataset and set `overall = FALSE`. ```{r, eval=FALSE} summary_rob <- rob_summary(data = data_rob2[1:6], tool = "ROB2", overall = FALSE) summary_rob ``` ``` {r, echo = FALSE} plot <- rob_summary(data = data_rob2[1:6], tool = "ROB2", overall = FALSE) file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
```{r, eval=FALSE} rob_traffic_light(data = data_rob2[1:6], tool = "ROB2", overall = FALSE) ``` ``` {r, echo = FALSE} plot <- rob_traffic_light(data = data_rob2[1:6], tool = "ROB2", overall = FALSE) file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
### 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: ```{r, eval=FALSE} library(ggplot2) rob_summary(data = data_rob2, tool = "ROB2") + ggtitle("Summary of RoB 2.0 assessments") ``` ``` {r, echo = FALSE} plot <- rob_summary(data = data_rob2, tool = "ROB2") + ggplot2::ggtitle("Summary of RoB2.0 assessments") file = paste0("man/figures/robplot",fig_count,".png") rob_save(plot, file) fig_count <- fig_count + 1 ```
## Examples of `robvis` in published papers To date, `robvis` has been cited in more than 1500 academic articles - these can be explored [here](https://scholar.google.com/scholar?cites=12564214960529060925&as_sdt=2005&sciodt=0,5&hl=en). ## 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 `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](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.

Owner

  • Name: Luke McGuinness
  • Login: mcguinlu
  • Kind: user
  • Location: Dublin, Ireland

Interests include data science, bias assessment, evidence synthesis + data visualisation.

GitHub Events

Total
  • Issues event: 7
  • Watch event: 7
  • Issue comment event: 2
  • Pull request event: 1
  • Fork event: 3
Last Year
  • Issues event: 7
  • Watch event: 7
  • Issue comment event: 2
  • Pull request event: 1
  • Fork event: 3

Committers

Last synced: 7 months ago

All Time
  • Total Commits: 424
  • Total Committers: 8
  • Avg Commits per committer: 53.0
  • Development Distribution Score (DDS): 0.116
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Luke McGuinness l****s@b****k 375
Luke McGuinness l****s@g****m 18
Luke l****e@L****l 12
Alex J Fowler a****r@g****m 11
Randy Boyes 3****s 3
GitHub Actions a****s@g****m 3
Yo Yehudi y****i@p****k 1
Luke McGuinness l****4@b****k 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 68
  • Total pull requests: 40
  • Average time to close issues: 10 months
  • Average time to close pull requests: 23 days
  • Total issue authors: 23
  • Total pull request authors: 6
  • Average comments per issue: 2.12
  • Average comments per pull request: 0.5
  • Merged pull requests: 33
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 1
  • Average time to close issues: 40 minutes
  • Average time to close pull requests: N/A
  • Issue authors: 7
  • Pull request authors: 1
  • Average comments per issue: 0.29
  • Average comments per pull request: 0.0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mcguinlu (45)
  • rachaelmburke (1)
  • seabbs (1)
  • madhur-180 (1)
  • mlsmith99 (1)
  • LasaiBarrenada (1)
  • TomHsiung (1)
  • cychou13 (1)
  • Emanuel-1986 (1)
  • ailengt (1)
  • befriendabacterium (1)
  • drvatanpour (1)
  • akidpiras (1)
  • henda52 (1)
  • earcanal (1)
Pull Request Authors
  • mcguinlu (32)
  • rdboyes (2)
  • AJFOWLER (2)
  • remlapmot (2)
  • CYShapland (1)
  • yochannah (1)
Top Labels
Issue Labels
bug (13) enhancement (11) good first issue (10) help wanted (8) ES-Hacktoberfest (6) stretch (5) Hacktoberfest (5) reprex (2)
Pull Request Labels
merge when passing (7) Hacktoberfest (1) ES-Hacktoberfest (1)

Packages

  • Total packages: 1
  • Total downloads:
    • cran 1,945 last-month
  • Total docker downloads: 21,613
  • Total dependent packages: 0
  • Total dependent repositories: 3
  • Total versions: 1
  • Total maintainers: 1
cran.r-project.org: robvis

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

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 3
  • Downloads: 1,945 Last month
  • Docker Downloads: 21,613
Rankings
Docker downloads count: 0.6%
Forks count: 3.9%
Stargazers count: 6.7%
Average: 12.0%
Downloads: 15.4%
Dependent repos count: 16.5%
Dependent packages count: 28.7%
Last synced: 6 months ago

Dependencies

DESCRIPTION cran
  • R >= 3.6 depends
  • dplyr >= 1.0.2 imports
  • ggplot2 >= 3.3.0 imports
  • ggtext >= 0.1.0 imports
  • grDevices * imports
  • metadat * imports
  • metafor >= 2.4 imports
  • rlang >= 0.4.9 imports
  • scales >= 1.1.0 imports
  • stringr >= 1.4.0 imports
  • tidyr >= 1.0.0 imports
  • vdiffr >= 0.3.3 imports
  • covr >= 3.5.1 suggests
  • knitr >= 1.28 suggests
  • rmarkdown >= 2.3 suggests
  • spelling >= 2.2 suggests
  • testthat >= 2.3.0 suggests