Learn R Programming

adaplots (version 0.1.0)

adaplot: Creates Ada-plot for the provided data.

Description

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

Usage

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

Value

Ada-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, Ada-plot by default.

xlab

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

lcol

color of the points which correspond to data on or below the sample average, black by default.

rcol

color of the points which correspond to data above the sample average, grey60 by default.

...

other graphical parameters.

References

Wijesuriya, U. A. (2025a). Ada-plot and Uda-plot as Alternatives for Ad-plot and Ud-plot. Communications in Statistics-Theory and Methods, tools:::Rd_expr_doi("10.1080/03610926.2025.2558108").

Wijesuriya, U. A. (2025b). 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").

Wijesuriya, U. A. (2025c). adplots: Ad-plot and Ud-plot for Visualizing Distributional Properties and Normality. R Package Version 0.1.0, tools:::Rd_expr_doi("10.32614/CRAN.package.adplots").

Examples

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

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

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

Run the code above in your browser using DataLab