Gilead-BioStats / gsm

Good Statistical Monitoring R Package
https://gilead-biostats.github.io/gsm/
Apache License 2.0
36 stars 9 forks source link

Feature: Implement `strGroupSubset` in `Report_FlagOverTime()` #1664

Closed jwildfire closed 2 days ago

jwildfire commented 1 month ago

Feature Details

Filter table using same logic as Widget_GroupOverview. Ideally, we could use the same control in the report to trigger changes in both tables.

Example Code

Possible Implementation

Additional Comments

jwildfire commented 1 month ago

Might bump this to v2.1 depending on level of effort ...

jonthegeek commented 1 month ago

To confirm that this is what I think it is:

strGroupSubset should have possible values c("red", "amber", "red/amber")

I could do that relatively easily on the R side... but doing so would prevent it from working on the javascript side (because I'd filter the data before it gets into the tool). But I could definitely imagine wanting non-interactive versions that do that filtering.

I think this is currently implemented as something somewhat in-between static (other places use kable) and interactive (other places use a direct htmlwidget or wrap gt in htmltools).

I feel like I can fix it, but I'm not certain which direction to take things.

jwildfire commented 1 month ago

Let's try creating a Widget_FlagOverTime() with strGroupSubset that interactively calls Report_FlagOverTime() based on the value of a