powered by
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
# 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