Half-Normal Plots
This package provides a wrapper around the halfnorm function from the faraway package using the ggplot2 API. The gghalfnorm
function is the only function within the package.
set.seed(123)
gghalfnorm(x = rnorm(100), nlab = 10)
The function can also make use of the geom_text_repel
function from the ggrepel package.
set.seed(123)
gghalfnorm(x = rnorm(100), nlab = 10, repel = TRUE, box.padding = unit(1, "lines"))
Install the latest stable release from CRAN:
install.packages("gghalfnorm")
Alternatively, install the latest development version from github:
install.packages("devtools")
devtools::install_github("nathaneastwood/gghalfnorm")