asinh_trans: asinh ggplot scale transformation

View source: R/plot_funcs.R

asinh_transR Documentation

asinh ggplot scale transformation

Description

This can be used to do an arcsinh transformation of a ggplot scale, similar to the log transformation (but with the ability to handle values <= 0). To do a sinh transformation, use "sinh" instead of "asinh" (see ?sinh_trans).

Usage

asinh_trans()

Examples

library(ggplot2)
ggplot(data.frame(x=1:10,y=1:10), aes(x=x,y=y)) +
    geom_point() +
    scale_y_continuous(trans="asinh")


BIO-RSG/oceancolouR documentation built on April 25, 2024, 12:28 p.m.