ds_plot_density: Generate density plots

View source: R/ds-plots.R

ds_plot_densityR Documentation

Generate density plots

Description

Creates density plots if the data has continuous variables.

Usage

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

# 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)


descriptr documentation built on April 3, 2025, 8:46 p.m.