View source: R/breaks-retired.R
trans_breaks | R Documentation |
These often do not produce very attractive breaks.
trans_breaks(trans, inv, n = 5, ...)
trans |
function of single variable, |
inv |
inverse of the transformation function |
n |
desired number of ticks |
... |
other arguments passed on to pretty |
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.