Learn R Programming

descriptr (version 0.6.1)

ds_plot_box_single: Generate box plots

Description

Creates box plots if the data has continuous variables.

Usage

ds_plot_box_single(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
# plot single variable
ds_plot_box_single(mtcarz, mpg)

# plot multiple variables
ds_plot_box_single(mtcarz, mpg, disp, hp)

# plot all variables
ds_plot_box_single(mtcarz)

Run the code above in your browser using DataLab