\Header{qqnorm}{Quantile-Quantile Plots}
\alias{qqplot}{qqnorm}
\alias{qqline}{qqnorm}
\keyword{hplot}{qqnorm}
\keyword{distribution}{qqnorm}
\begin{Usage}
\begin{verbatim}
qqnorm(y, ylim, main = "Normal Q-Q Plot", xlab = "Theoretical Quantiles",
       ylab = "Sample Quantiles", plot.it = TRUE, ...)
qqline(y, ...)
qqplot(x, y, plot.it = TRUE, xlab = deparse(substitute(x)),
       ylab = deparse(substitute(y)), ...)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{x}] The first sample for \texttt{qqplot}.
\item[\texttt{y}] The second or only data sample.
\end{ldescription}
\end{Arguments}
\begin{Description}
\texttt{qqnorm} produces a normal QQ plot of the values in \texttt{y}.
\texttt{qqline} adds a line to a normal quantile-quantile plot which
passes through the first and third quartiles.

\texttt{qqplot} produces a QQ plot of two datasets.

Graphical parameters may be given as arguments to \texttt{qqnorm},
\texttt{qqplot} and \texttt{qqline}.\end{Description}
\begin{Value}
For \texttt{qqnorm} and \texttt{qqplot}, a list with components
\begin{ldescription}
\item[\texttt{x}] The x coordinates of the points that were/would be plotted
\item[\texttt{y}] The corresponding y coordinates
\end{ldescription}
\end{Value}
\begin{SeeAlso}
\texttt{\Link{ppoints}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
y <- rt(200, df = 5)
qqnorm(y); qqline(y, col = 2)
qqplot(y, rt(300, df = 5))
data(precip)
qqnorm(precip, ylab = "Precipitation [in/yr] for 70 US cities")
\end{ExampleCode}
\end{Examples}

