Description
Create a Half Normal Plot Using 'ggplot2'.
Description
Reproduce the halfnorm() function found in the 'faraway' package using the 'ggplot2' API.
README.md
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.
Usage
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"))
Installation
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")