ds_plot_bar_stacked | R Documentation |
Creates stacked bar plots if the data has categorical variables.
ds_plot_bar_stacked(data, ..., print_plot = TRUE)
data |
A |
... |
Column(s) in |
print_plot |
logical; if |
# subset data
mt <- dplyr::select(mtcarz, cyl, gear, am)
# stacked bar plot
ds_plot_bar_stacked(mtcarz, cyl, gear)
# plot all variables
ds_plot_bar_stacked(mt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.