library(gghalfnorm)
library(ggrepel)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "tools/images/README-"
)

gghalfnorm

Half-Normal Plots

Project Status: Active - The project has reached a stable, usable state and is being actively developed. Travis-CI Build Status CRAN RStudio mirror downloads codecov

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.

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")

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"))


nathaneastwood/gghalfnorm documentation built on May 23, 2019, 12:18 p.m.