count_vars_plot | R Documentation |
This function count variables, do fct_reorder
by that count, extract percentage and construct labels
column
ready to be plotted.
count_vars_plot(
x,
...,
var_desc = TRUE,
label_number = c("percent", "count", "both"),
lump_prop = 0,
other_level = "Other"
)
x |
A data.frame |
... |
(Quoted or Unquoted) Variables to count |
var_desc |
If |
label_number |
Construction of
|
lump_prop |
Proportion that lump levels to "Other" (passed to |
other_level |
Name of the "Other" level |
A data.frame with "n", "prop", "pc", "labels" column
count_vars_plot(iris, Species)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.