shapiro.qqnorm: Qqnorm plots with Shapiro-Wilk's test

Description Usage Arguments Details Author(s) See Also Examples

View source: R/epiDisplay.R

Description

Quantile-normal plots with Shapiro-Wilk's test result integrated

Usage

1

Arguments

x

A numeric vector

...

Graphical parameters passed to 'par'

Details

To test a variable 'x' against the normal distribution, a qqnorm plot is integrated with the Shapiro-Wilk test to enhance interpretation.

Author(s)

Virasakdi Chongsuvivatwong <[email protected]>

See Also

'shapiro.test', 'qqnorm', 'par'

Examples

1
2
3
4
x <- rnorm(10)
a <- LETTERS[1:10]
shapiro.qqnorm(x, pch=a, col="red")
qqline(x, lty=2, col="black")

Example output

Loading required package: foreign
Loading required package: survival
Loading required package: MASS
Loading required package: nnet

epiDisplay documentation built on May 11, 2018, 1:04 a.m.