Description Usage Format Details Value Author(s) See Also Examples
Various scale transformations.
1 2 3 |
An object of class trans
of length 7.
The available transforms:
ssqrt_trans
a signed square root transform appropriate for
negative or positive numbers.
pseudolog10_trans
an asinh
transformation, which is like
a logarithm, but appropriate for negative or positive numbers. This
transformation was taken from the Win Vector blog,
http://www.win-vector.com/blog/2012/03/modeling-trick-the-signed-pseudo-logarithm/.
A scale transformation object.
Steven E. Pav shabbychef@gmail.com
http://www.win-vector.com/blog/2012/03/modeling-trick-the-signed-pseudo-logarithm/
1 2 3 4 5 6 7 8 9 | set.seed(1234)
ggplot(data.frame(x=rnorm(100),y=runif(100)),aes(x=x,y=y)) +
geom_point() +
scale_x_continuous(trans=ssqrt_trans)
set.seed(1234)
ggplot(data.frame(x=rnorm(100),y=runif(100)),aes(x=x,y=y)) +
geom_point() +
scale_x_continuous(trans=pseudolog10_trans)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.