powered by
Plot counts of a category
category_tally(data, category_column)
A data frame or tibble
Unquoted column name of category (can be factor, character or numeric)
A ggplot plot object
# NOT RUN { category_tally(ggplot2::mpg, class) category_tally(ggplot2::diamonds, cut) # }
Run the code above in your browser using DataLab