ssqrt_trans {ggallin} | R Documentation |
Various scale transforms.
Description
Various scale transformations.
Usage
ssqrt_trans
pseudolog10_trans
Format
An object of class trans
of length 7.
Details
The available transforms:
-
ssqrt_trans
a signed square root transform appropriate for negative or positive numbers. -
pseudolog10_trans
anasinh
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/.
Value
A scale transformation object.
Author(s)
Steven E. Pav shabbychef@gmail.com
See Also
http://www.win-vector.com/blog/2012/03/modeling-trick-the-signed-pseudo-logarithm/
Examples
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)
[Package ggallin version 0.1.1 Index]