Learn R Programming

describedata (version 0.1.1)

gladder: Replica of Stata's gladder function

Description

Creates ladder-of-powers histograms to visualize nine common transformations and compare each to a normal distribution. The following transformations are included: identity, cubic, square, square root, natural logarithm, inverse square root, inverse, inverse square, and inverse cubic.

Usage

gladder(x)

Value

A ggplot object with plots of each transformation

Arguments

x

A continuous numeric vector.

Examples

Run this code
gladder(iris$Sepal.Length)
gladder(mtcars$disp)

Run the code above in your browser using DataLab