Learn R Programming

adplots (version 0.1.0)

adplot: Creates Ad-plot for the provided data.

Description

Ad-plot identifies the characteristics of the distribution such as symmetry, skewness, and outliers of the data set.

Usage

adplot(X, title = "Ad-plot", xlab = "x", lcol = "black", rcol = "grey60", ...)

Value

Ad-plot

Arguments

X

an \(n\) by \(1\) matrix, equivalently, a column vector of length \(n\), where \(n\) is the number of observations.

title

title of the plot, Ad-plot by default.

xlab

\(x\)-axis label, \(x\) by default.

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.

...

other graphical parameters.

References

Wijesuriya, U. A. (2025). Ad-plot and Ud-plot for Determining Distributional Characteristics and Normality. Communications in Statistics-Theory and Methods, tools:::Rd_expr_doi("10.1080/03610926.2024.2440583").

Examples

Run this code
   set.seed(0)
   X1 <- matrix(rnorm(50, mean = 2, sd = 5))
   adplot(X1)

   X2 <- matrix(rf(50, df1 = 10, df2 = 5))
   adplot(X2)

   X3 <- matrix(rbeta(50, shape1 = 10, shape2 = 2))
   adplot(X3, title="", lcol = "blue", rcol = "red")

Run the code above in your browser using DataLab