View source: R/vis-categoric-dists.R
Returns a facetted plot of the count and percent of the top levels in each categorical column of a dataframe
1 2 3 4 5 6 7 | categoric_dists(
x,
cols = dplyr::everything(),
top_n = 5,
na_colour = "blue",
other_colour = "grey50"
)
|
x |
A dataframe containing character columns |
cols |
Tidyselect columns to use (default = |
top_n |
The top n levels to show - all other values will be lumped into 'Other' |
na_colour |
Colour for NA bars |
other_colour |
Colour for lumped 'Other' bars |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.