gghalfnorm {gghalfnorm}R Documentation

Half Normal Plot

Description

Produce a Half Normal Plot for a vector of residuals.

Usage

gghalfnorm(x, nlab = 2, labs = as.character(seq_along(x)), repel = FALSE,
  ...)

Arguments

x

A vector of residuals.

nlab

The number of points to label.

labs

The labels for the points.

repel

Logical. Whether to repel the labels or not.

...

Additional parameters to be passed to geom_text_repel.

See Also

qqnorm

Examples

set.seed(100)
gghalfnorm(x = rnorm(100), nlab = 10)
gghalfnorm(x = rnorm(100), nlab = 10, repel = TRUE)


[Package gghalfnorm version 1.1.2 Index]