
Last chance! 50% off unlimited learning
Sale ends in
Creates bar plots if the data has categorical variables.
ds_plot_bar(data, ..., fill = "blue", print_plot = TRUE)
A data.frame
or tibble
.
Column(s) in data
.
Color of the bars.
logical; if TRUE
, prints the plot else returns a plot object.
# NOT RUN {
ds_plot_bar(mtcarz)
ds_plot_bar(mtcarz, cyl)
ds_plot_bar(mtcarz, cyl, gear)
# }
Run the code above in your browser using DataLab