Description Usage Arguments Value Note Author(s) References
A function used to calculate a normal QQ plot with confidence bands representing a 95 of values. This function extends the graphing capabilities of base R and implicitly creates a plot that may be added to.
1 2 |
x |
A numeric vector of data for which to create the QQ plot. |
ylab |
A |
lty1 |
The line type for the reference line. See par for
more information. Defaults to |
lty2 |
The line types for the confidence intervals. See par
for more information. Defaults to |
swap |
A boolean value indicating whether to swap the x and y axes.
If set to |
conf |
A boolean value indicating whether to produce the confidence
bands. Defaults to |
... |
Other arguments passed to qqnorm. |
An invisible list with the following components:
z
The normal quantiles.
x
The input data.
slope
The slope of the plot.
zz
The z values sorted in ascending order.
P
Probability points. See ppoints for more information.
SE
The delta-method standard error for the confidence interval.
. Additionally the function will always plot the normal QQ plot.
All documentation and code taken from Brian Junker and Howard Seltman.
Brian Junker, brian AT stat.cmu.edu
Code taken from Howard Seltman's (hseltman AT cmu.edu) personal website. http://www.stat.cmu.edu/~hseltman/AboutMe.html. Code may be found at http://www.stat.cmu.edu/~hseltman/files/qqn.R.
To read more about the delta method of bound calculations, please see https://genome.sph.umich.edu/wiki/Code_Sample:_Generating_QQ_Plots_in_R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.