Learn R Programming

descriptr (version 0.5.2)

ds_plot_box_group: Compare distributions

Description

Creates box plots if the data has both categorical & continuous variables.

Usage

ds_plot_box_group(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, disp, mpg)
ds_plot_box_group(mt)
ds_plot_box_group(mtcarz, cyl, gear, mpg)

# }

Run the code above in your browser using DataLab