Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

trans_breaks

Pretty breaks on transformed scale


Description

[Retired] These often do not produce very attractive breaks.

Usage

trans_breaks(trans, inv, n = 5, ...)

Arguments

trans

function of single variable, x, that given a numeric vector returns the transformed values

inv

inverse of the transformation function

n

desired number of ticks

...

other arguments passed on to pretty

Examples

trans_breaks("log10", function(x) 10 ^ x)(c(1, 1e6))
trans_breaks("sqrt", function(x) x ^ 2)(c(1, 100))
trans_breaks(function(x) 1 / x, function(x) 1 / x)(c(1, 100))
trans_breaks(function(x) -x, function(x) -x)(c(1, 100))

scales

Scale Functions for Visualization

v1.1.1
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], Dana Seidel [aut], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.