qqgauss: Function for producing a QQ plot for a Gaussian
probability density function.
Description
The function creates a QQ plot for a given random
variable y and a Gaussian probability density function.
This graph is a scatterplot between the sample
quantiles of the data and the theoretical quantiles,
following the Gaussian pdf.
Usage
qqgauss(y = y, linecol = "red", xlab = NULL, ylab = NULL, eng = TRUE, ...)
Value
The function returns the above described graph.
Arguments
y
A numeric vector representing the Y-random variable
linecol
A string specifying the 1:1 straight-line color.
The default is set to "red".
xlab
(optional) A string specifying X-axis label.
If not provide it, uses the default setting.
ylab
(optional) A string specifying Y-axis label.
If not provide it, uses the default setting.
eng
logical; if TRUE (by default), the language of the
statistics will be in English; if "FALSE" will be in Spanish.
...
other graphical parameters (see par and
section 'Details' below).
Author
Christian Salas-Eljatib
Details
Notice that the reference pdf model is
the Gaussian one, i.e., uses the qnorm() function.
References
Salas-Eljatib C. 2021. Análisis de datos con el programa
estadístico R:
una introducción aplicada.
Ediciones Universidad Mayor. Santiago, Chile. 170 p.
https://eljatib.com