Learn R Programming

descriptr (version 0.5.0)

ds_plot_bar: Generate bar plots

Description

Creates bar plots if the data has categorical variables.

Usage

ds_plot_bar(data, ..., fill = "blue")

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

fill

Color of the bars.

Examples

Run this code
# NOT RUN {
ds_plot_bar(mtcarz)
ds_plot_bar(mtcarz, cyl)
ds_plot_bar(mtcarz, cyl, gear)

# }

Run the code above in your browser using DataLab