powered by
Creates stacked bar plots if the data has categorical variables.
ds_plot_bar_stacked(data, ..., print_plot = TRUE)
A data.frame or tibble.
data.frame
tibble
Column(s) in data.
data
logical; if TRUE, prints the plot else returns a plot object.
TRUE
# NOT RUN { mt <- dplyr::select(mtcarz, cyl, gear, am) ds_plot_bar_stacked(mt) ds_plot_bar_stacked(mtcarz, cyl, gear) # }
Run the code above in your browser using DataLab