Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

sim.qqnorm

Simulation of QQ plots for the Normal distribution


Description

This demo shows the possible QQ plots created by random numbers generated from a Normal distribution so that users can get a rough idea about how QQ plots really look like.

Usage

sim.qqnorm(n = 20, last.plot = NULL, ...)

Arguments

n

integer: sample size

last.plot

an expression to be evaluated after the plot is drawn, e.g. expression(abline(0, 1)) to add the diagonal line

...

other arguments passed to qqnorm

Details

When the sample size is small, it is hard to get a correct inference about the distribution of data from a QQ plot. Even if the sample size is large, usually there are outliers far away from the straight line. Therefore, don't overinterpret the QQ plots.

Value

NULL

Author(s)

Yihui Xie

References

See Also


animation

A Gallery of Animations in Statistics and Utilities to Create Animations

v2.6
GPL
Authors
Yihui Xie [aut, cre], Christian Mueller [ctb], Lijia Yu [ctb], Weicheng Zhu [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.