udplot {adplots} | R Documentation |
Creates Ud-plot for the provided data excluding and including the estimated normal density curve.
Description
Ud-plot developed by a slight modification of Ad-plot can be utilized to assess normality.
Usage
udplot(X, npdf = FALSE, title = ifelse(npdf == FALSE, "Ud-plot",
"Ud-plot & Normal Density Curve"), xlab = "x", lcol = "black",
rcol = "grey60", pdfcol = "red", ...)
Arguments
X |
an |
npdf |
display of the estimated normal density curve in the Ud-plot, FALSE by default. |
title |
title of the plot, Ud-plot by default and Ud-plot & Normal Density Curve otherwise. |
xlab |
|
lcol |
color of the points corresponding to the data that are less than or equal to the sample average, black by default. |
rcol |
color of the points corresponding to the data that are greater than the sample average, grey60 by default. |
pdfcol |
color of the estimated normal density curve, red by default. |
... |
other graphical parameters. |
Value
Ad-plot
References
Wijesuriya, U. A. (2025). Ad-plot and Ud-plot for Determining Distributional Characteristics and Normality. Communications in Statistics-Theory and Methods, doi:10.1080/03610926.2024.2440583.
Examples
set.seed(0)
X1 <- matrix(rnorm(50, mean = 2, sd = 5))
udplot(X1)
X2 <- matrix(rnorm(50, mean = 2, sd = 5))
udplot(X2, npdf = TRUE)
X3 <- matrix(rnorm(500, mean = 2, sd = 5))
udplot(X3, npdf = TRUE, title = "", lcol = "blue", rcol = "red", pdfcol = "black")