ropensci / visdat

Preliminary Exploratory Visualisation of Data
https://docs.ropensci.org/visdat/
Other
450 stars 47 forks source link

Implement facetting for `vis_value()`, `vis_binary()`, `vis_compare()`, `vis_expect()`, and `vis_guess()`. #159

Open njtierney opened 1 year ago

njtierney commented 1 year ago

See #78

Generalized commented 1 year ago

Definitely, this would be extremely useful. The problem with predefined faceting rather than relying on the external +facet_grid or facet_rap is already visible in the SurvMiner package: it works as long as the user fits the anticipated pattern: max 2 groups. If one has 3 grouping variables - the facet_wrap or facet_grid becomes an unreachable dream. Then "patchworking" or gridExtra may help, but it's definitely a non-trivial solution. Such 2+ grouping is a daily thing e.g. in medical research, clinical trials, where we have multiple visits and multiple treatment arms (2 grouping levels). If one wants to look at missing data patterns in each treatment arm at each visit - then it has to be done with manual recreation of these graphs with ggplot2.