visdat_grouped: vis_dat for grouped data

View source: R/visdat_custom_functions.R

visdat_groupedR Documentation

vis_dat for grouped data

Description

Produce a vis_dat plot for ipeds data split by year with optional sampling. [Maturing]

Note that parallel processing is built in if a future::plan() is set

Usage

visdat_grouped(.data, ..., method = "vis_dat", .sample_frac = "auto")

Arguments

...

bare, unquoted column(s) to use as the index to group by. Alternatively will accept a grouped df.

method

Which visdat function to use. One of "vis_dat", "vis_miss", or "vis_value". Accepts shorthand "dat", "val", and "miss".

.sample_frac

Percent of observations to sample from each year. Default "auto" samples down to 100,000 rows, split evenly between groups for vis_dat. For vis_miss and vis_value, "auto" uses all data.

Value

visdat plot separated by grouping variable.

Examples

## Not run: 
diamonds %>% visdat_grouped(facet_group = cut)

## End(Not run)

IntegralEnvision/integral documentation built on Nov. 4, 2024, 2 p.m.