powered by
Label and Value are in the data. Create a bar plot where the heights of the bars represent the values for each label.
explore_col( data, var_label, var_value, title = NA, subtitle = "", numeric = FALSE, max_cat = 30, na = 0, flip = NA, color = "#ADD8E6" )
Plot object
A dataset (categories + frequency)
Variable containing the label
Variable containing the value
Title of the plot
Subtitle of the plot
Display variable as numeric (not category)
Maximum number of categories to be plotted
Value to use for NA
Flip plot? (for categorical variables)
Color for bar
library(magrittr) data <- data.frame(label = LETTERS[1:5], value = c(1.5,2,1.2,3,2.6)) data %>% explore_col(label, value)
Run the code above in your browser using DataLab