make_barplot1 | R Documentation |
Create a barplot for a categorical variable with percent and count labels. Good for variable that has ten or less categories. Label size is adjusted based on the number of categories.
make_barplot1(data, cat_var, label_fmt = TRUE)
data |
dataset that contains the categorical variable |
cat_var |
name of the categorical variable to be plotted as a string |
label_fmt |
boolean to indicate whether plot labels should be formatted |
none
make_barplot1(ggplot2::diamonds, "cut")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.