R/ds-plots.R
ds_plot_density.Rd
Creates density plots if the data has continuous variables.
ds_plot_density(data, ..., color = "blue", print_plot = TRUE)
A data.frame or tibble.
data.frame
tibble
Column(s) in data.
data
Color of the plot.
logical; if TRUE, prints the plot else returns a plot object.
TRUE
# 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)