shapiro.qqnorm | R Documentation |
Quantile-normal plots with Shapiro-Wilk's test result integrated
shapiro.qqnorm (x, ...)
x |
A numeric vector |
... |
Graphical parameters passed to 'par' |
To test a variable 'x' against the normal distribution, a qqnorm plot is integrated with the Shapiro-Wilk test to enhance interpretation.
Virasakdi Chongsuvivatwong cvirasak@gmail.com
'shapiro.test', 'qqnorm', 'par'
x <- rnorm(10) a <- LETTERS[1:10] shapiro.qqnorm(x, pch=a, col="red") qqline(x, lty=2, col="black")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.