dens_plot {AnalysisLin} | R Documentation |
Numerical Variables Density Plots
Description
This function generates density plots for all numerical variables in the input data frame. It offers a vivid and effective visual summary of the distribution of each numerical variable, helping in a quick understanding of their central tendency, spread, and shape.
Usage
dens_plot(
data,
fill = "skyblue",
color = "black",
alpha = 0.7,
subplot = FALSE,
nrow = 2,
margin = 0.1,
html = FALSE
)
Arguments
data |
The input data frame containing numerical variables. |
fill |
The fill color of the density plot (default: "skyblue"). |
color |
The line color of the density plot (default: "black"). |
alpha |
The transparency of the density plot (default: 0.7). |
subplot |
A logical argument (default: FALSE) indicating whether to create subplots. |
nrow |
Number of rows for subplots (if subplot is TRUE, default: 2). |
margin |
Margin for subplots (if subplot is TRUE, default: 0.1). |
html |
Whether the output should be in HTML format,used when knitting into HTML. Default is FALSE. |
Value
A list of density plots.
Examples
data(mtcars)
dens_plot(mtcars)