powered by
Create a plot to explore count data (categories + freuency) Variable named 'n' is auto detected as Frequency
explore_count( data, cat, n, target, pct = FALSE, split = TRUE, title = NA, numeric = FALSE, max_cat = 30, max_target_cat = 5, color = c("#ADD8E6", "#7BB8DA"), flip = NA )
Plot object
A dataset (categories + frequency)
Numerical variable
Number of observations (frequency)
Target variable
Show as percent?
Split by target (FALSE/TRUE)
Title of the plot
Display variable as numeric (not category)
Maximum number of categories to be plotted
Maximum number of categories to be plotted for target (except NA)
Color for bar
Flip plot? (for categorical variables)
library(dplyr) iris %>% count(Species) %>% explore_count(Species)
Run the code above in your browser using DataLab