SafetyGraphics / safetyCharts

Charts for monitoring clinical trial safety designed for use with {safetyGraphics}
Other
8 stars 7 forks source link

Add support for grouping column in hep-explorer #99

Open jwildfire opened 2 years ago

jwildfire commented 2 years ago

Per https://github.com/SafetyGraphics/safetyGraphics/issues/662. Relevant in some other renderers as well.

jwildfire commented 2 years ago

See #100 and associated PR for an implementation outside of safetyGraphics

jwildfire commented 2 years ago

Fix is pretty straightforward, just need to make a custom init that merges in the treatment column from dm and maps it to settings.group_col.

Would be nice to avoid having to do this for every chart though ... Maybe safetyGraphics could provide standardized access to certain key mappings (group_col, filters, etc). Will think about if there's a straightforward way to implement that ...

jwildfire commented 1 year ago

@samussiah I wonder if it would be easy to add a helper function that does this for multiple charts in the new modular htmlwidget framework you've set up.