Package 'gghalfnorm'

Title: Create a Half Normal Plot Using 'ggplot2'
Description: Reproduce the halfnorm() function found in the 'faraway' package using the 'ggplot2' API.
Authors: Nathan Eastwood [aut, cre]
Maintainer: Nathan Eastwood <[email protected]>
License: AGPL-3
Version: 1.1.2.9000
Built: 2025-02-15 04:39:59 UTC
Source: https://github.com/nathaneastwood/gghalfnorm

Help Index


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)