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).
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).