Learn R Programming

discreteRV (version 1.2.2)

qqnorm.RV: Normal quantile plot for RVs to answer the question how close to normal it is

Description

Normal quantile plot for RVs to answer the question how close to normal it is

Usage

"qqnorm"(y, ..., pch = 16, cex = 0.5, add = FALSE, xlab = "Normal Quantiles", ylab = "Random Variable Quantiles", tol = 1e-10)

Arguments

y
A random variable
...
Additional arguments to be passed to the "plot" or "points" function
pch
Either an integer specifying a symbol or a single character to be used as the default in plotting points.
cex
A numerical value giving the amount by which plotting text and symbols should be magnified relative to the default.
add
A logical indicating whether to add to an existing plot
xlab
Label for the X axis
ylab
Label for the Y axis
tol
tolerance for the zero probability case

Examples

Run this code
fair.die <- RV(1:6, rep(1/6,6))
qqnorm(fair.die)

Run the code above in your browser using DataLab