reconhub / incidence

☣:chart_with_upwards_trend::chart_with_downwards_trend:☣ Compute and visualise incidence
https://reconhub.github.io/incidence
Other
58 stars 13 forks source link

Group hierarchies #76

Closed zkamvar closed 5 years ago

zkamvar commented 5 years ago

Currently, users can group by a single factor, but it's often useful to group by two factors (e.g. age group and case definition).

This could be applied to the current structure by implementing the $counts as an array.

dirkschumacher commented 5 years ago

How would you do a facet plot (in the ggplot2 sense)? Is this currently possible?

zkamvar commented 5 years ago

it is currently possible by adding facet_wrap(~groups)

zkamvar commented 5 years ago

I'm going to close this issue as the conversation as moved on to #104