normality2color: Sample normality color code.

normality2colorR Documentation

Sample normality color code.

Description

normality2color estimates the normality of vector x and returns a color code representing the result of a normality test.

Usage

normality2color(x, cols = c("green", 
    "red", "gray"))

Arguments

x

a numeric vector

cols

a vector of three colors, the first used to represent normality, the second non-normality, and the third undetermined normality.

Author(s)

Tomas Sieger

See Also

normality2flag, dagostinoTest

Examples

normality2color(rnorm(30))
normality2color(rnorm(3))
normality2color(runif(30))

tsieger/tsiMisc documentation built on Oct. 10, 2023, 10:24 p.m.