Description Usage Value References Examples
Create an axis transform using the Inverse hyperbolic sine transformation to allow log-like axis using data with negative values
1 |
Adds a new transformation for use with ggplot
http://wresch.github.io/2013/03/08/asinh-scales-in-ggplot2.html
http://robjhyndman.com/hyndsight/transformations/
http://stackoverflow.com/questions/14504869/histogram-with-negative-logarithmic-scale-in-r
1 2 3 4 5 |
library(ggplot2)
ggplot(data.frame(x=seq(-1000,1000,len=200)), aes(x=x,y=x))+
geom_line(size=1)+
scale_x_continuous(trans = 'asinh',breaks=c(-1000,-100,10,-1,0,1,10,100,1000))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.