qq_plot {AnalysisLin} | R Documentation |
This function generates QQ plots for all numerical variables in the input data frame. QQ plots are valuable for assessing the distributional similarity between observed data and a theoretical normal distribution. It acts as a guide, revealing deviations from the expected norm, outliers, and the contours of distribution tails.
qq_plot(
data,
color = "skyblue",
subplot = FALSE,
nrow = 2,
margin = 0.1,
html = FALSE
)
data |
The input data frame containing numerical variables. |
color |
The color of the QQ plot line (default: "skyblue"). |
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. |
A list of QQ plots.
data(mtcars)
qq_plot(mtcars)