Description Usage Arguments Value See Also Examples
View source: R/asinh_trans_prettybreaks.R
A hyperbolic arcsinh transformation for use within ggplot2, that also makes nice breaks.
1 | asinh_trans_prettybreaks(cofactor)
|
cofactor |
a cofactor to be used for the transformation |
A transformation of the axis by the cofactor, such that y = asinh(x/cofactor)
log_trans
in the scales
package which implements a similar transformation
1 2 3 4 5 | library(ggplot2)
ggplot(diamonds, aes(x = price)) +
geom_histogram() +
scale_x_continuous(trans = asinh_trans(5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.