mcguinlu / robvis

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

Allow user to change Domain shortcodes (D1/D2/etc) in Generic template #127

Closed mcguinlu closed 1 year ago

mcguinlu commented 3 years ago

Rather than having the Domain shortcodes (D1/D2/D3) hardcoded in the Generic traffic light function, allow users to provide a vector.

Motivating example is if users want to only present results from some domains (e.g. Domain 1/Domain 3/Domain 5). In this case, the tool assigns the shortcodes D1/D2/D3 which is misleading. Allowing users to provide domain_shortcodes = c("D1","D3","D5") fixes this.

This is already implemented for the "Overall" column (cross with problems in #123), but we'll also need to incorporate the new shortcodes into the caption (recommend glue for this).