Learn R Programming

descriptr (version 0.5.2)

ds_plot_bar_grouped: Generate grouped bar plots

Description

Creates grouped bar plots if the data has categorical variables.

Usage

ds_plot_bar_grouped(data, ..., print_plot = TRUE)

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

print_plot

logical; if TRUE, prints the plot else returns a plot object.

Examples

Run this code
# NOT RUN {
mt <- dplyr::select(mtcarz, cyl, gear, am)
ds_plot_bar_grouped(mt)
ds_plot_bar_grouped(mtcarz, cyl, gear)

# }

Run the code above in your browser using DataLab