asinh_trans_prettybreaks: A hyperbolic arcsinh transformation for use within ggplot2,...

Description Usage Arguments Value See Also Examples

View source: R/asinh_trans_prettybreaks.R

Description

A hyperbolic arcsinh transformation for use within ggplot2, that also makes nice breaks.

Usage

1

Arguments

cofactor

a cofactor to be used for the transformation

Value

A transformation of the axis by the cofactor, such that y = asinh(x/cofactor)

See Also

log_trans in the scales package which implements a similar transformation

Examples

1
2
3
4
5
library(ggplot2)

ggplot(diamonds, aes(x = price)) +
geom_histogram() +
scale_x_continuous(trans = asinh_trans(5))

bjreisman/cytotidyr documentation built on Nov. 22, 2020, 9:30 p.m.