cat_stacked_barplot: Stacked bar plot

Description Usage Arguments Value Examples

View source: R/cat_stacked_barplot.R

Description

This function creates a stacked barplot. The data does not have to be preprocessed.

Usage

1
cat_stacked_barplot(df, xcol, ycol, title = "")

Arguments

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

Value

A ggplot2 object. Add more items with "+".

Examples

1
cat_stacked_barplot(mtcars %>% dplyr::mutate_all(as.character), am, gear)

davidbaniadam/rispacs documentation built on Nov. 4, 2019, 9:43 a.m.