make_barplot2 | R Documentation |
Create a barplot for a categorical variable grouped by another categorical variable, with percent and count labels. Good for plotting ten or less total categories.
make_barplot2(data, cat_var, grp_var)
data |
dataset that contains the categorical variable |
cat_var |
name of the categorical variable to be plotted as a string |
grp_var |
name of a grouping categorical variable as a string |
none
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.