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 |
Produce a Half Normal Plot for a vector of residuals.
gghalfnorm(x, nlab = 2, labs = as.character(seq_along(x)), repel = FALSE, ...)
gghalfnorm(x, nlab = 2, labs = as.character(seq_along(x)), repel = FALSE, ...)
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
|
set.seed(100) gghalfnorm(x = rnorm(100), nlab = 10) gghalfnorm(x = rnorm(100), nlab = 10, repel = TRUE)
set.seed(100) gghalfnorm(x = rnorm(100), nlab = 10) gghalfnorm(x = rnorm(100), nlab = 10, repel = TRUE)