Description Usage Arguments Value Examples
View source: R/cat_stacked_barplot.R
This function creates a stacked barplot. The data does not have to be preprocessed.
1 | cat_stacked_barplot(df, xcol, ycol, title = "")
|
df |
The raw data frame (tidy data). The counting happens in the function. |
xcol |
The variable to be plottet on the x-axis |
ycol |
The variable which |
title |
The title as a string |
A ggplot2 object. Add more items with "+".
1 | cat_stacked_barplot(mtcars %>% dplyr::mutate_all(as.character), am, gear)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.