mcguinlu / robvis

A package to quickly visualise risk-of-bias assessment results
https://mcguinlu.github.io/robvis/
Other
58 stars 22 forks source link

QUADAS-2 issue #138

Closed cychou13 closed 1 year ago

cychou13 commented 2 years ago

Hi In the QUADAS-2, Risk of bias (D1-D4) and applicability judgments (D1-D3) with the title "Risk of bias" and "applicability judgments" However, the QUADAS-2 tool only allows D1-D4 and Overall. Is there any to fix this? Regards

mcguinlu commented 1 year ago

Hey @cychou13,

This is intended behaviour, as robvis is primarily meant to deal with risk of bias assessment, rather than applicability assessments.

However, a recent update (via #143) allows users to specify the domain shortcodes in the "Generic" template, so it is now possible to include both on a single plot:

# Create example dataset
df <- cbind(data_quadas[, 1:5], data_quadas[3:5])

# Rename columns
colnames(df) <- c(

  "Study",
  "Patient Selection (Bias)",
  "Index test (Bias)",
  "Reference standard (Bias)",
  "Flow and timing (Bias)",
  "Patient Selection (Applicability)",
  "Index test (Applicability)",
  "Reference standard (Applicability)"
)

# Create traffic light
rob_traffic_light(
  df,
  "Generic",
  overall = FALSE,
  domain_shortcodes = c("R1", "R2", "R3", "R4", "A1", "A2", "A3"),
  x_title = "Bias/Applicability Domains"
) 

The code above will create the following image:

Rplot01