sinh_trans | R Documentation |
This can be used to do an sinh transformation of a ggplot scale. To do an asinh transformation, use "asinh" instead of "sinh" (see ?asinh_trans).
sinh_trans()
library(ggplot2)
ggplot(data.frame(x=1:10,y=1:10), aes(x=x,y=y)) +
geom_point() +
scale_y_continuous(trans="sinh")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.