ds_plot_density: Generate density plots

Description Usage Arguments Examples

View source: R/ds-plots.R

Description

Creates density plots if the data has continuous variables.

Usage

1
ds_plot_density(data, ..., color = "blue", print_plot = TRUE)

Arguments

data

A data.frame or tibble.

...

Column(s) in data.

color

Color of the plot.

print_plot

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

Examples

1
2
3
4
5
6
7
8
# plot single variable
ds_plot_density(mtcarz, mpg)

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

# plot all variables
ds_plot_density(mtcarz)

rsquaredacademy/descriptr documentation built on July 9, 2021, 8:13 p.m.