File: sim.qqnorm.Rd

package info (click to toggle)
r-cran-animation 2.7%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,268 kB
  • sloc: javascript: 873; sh: 15; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sim.qqnorm.R
\name{sim.qqnorm}
\alias{sim.qqnorm}
\title{Simulation of QQ plots for the Normal distribution}
\usage{
sim.qqnorm(n = 20, last.plot = NULL, ...)
}
\arguments{
\item{n}{integer: sample size}

\item{last.plot}{an expression to be evaluated after the plot is drawn, e.g.
\code{expression(abline(0, 1))} to add the diagonal line}

\item{...}{other arguments passed to \code{\link{qqnorm}}}
}
\value{
\code{NULL}
}
\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.
}
\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.
}
\references{
Examples at \url{https://yihui.org/animation/example/sim-qqnorm/}
}
\seealso{
\code{\link{qqnorm}}
}
\author{
Yihui Xie
}