R/ds-plots.R
ds_plot_bar.Rd
Creates bar plots if the data has categorical variables.
ds_plot_bar(data, ..., fill = "blue", print_plot = TRUE)
A data.frame or tibble.
data.frame
tibble
Column(s) in data.
data
Color of the bars.
logical; if TRUE, prints the plot else returns a plot object.
TRUE
# plot single variable ds_plot_bar(mtcarz, cyl) # plot multiple variables ds_plot_bar(mtcarz, cyl, gear) # plot all variables ds_plot_bar(mtcarz)