asinh_trans | R Documentation |
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).
asinh_trans()
library(ggplot2)
ggplot(data.frame(x=1:10,y=1:10), aes(x=x,y=y)) +
geom_point() +
scale_y_continuous(trans="asinh")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.