Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add some scale transforms? #31

Closed
shabbychef opened this issue Feb 16, 2017 · 0 comments
Closed

add some scale transforms? #31

shabbychef opened this issue Feb 16, 2017 · 0 comments

Comments

@shabbychef
Copy link

I have a 'quiver' of scale transforms I keep at my disposal, and was looking to put them in a package. It makes no sense to have a package just for them, but maybe ggalt would be a good place. For example, 'signed square root':

scl_ssqrt <- scales::trans_new("signed sqrt",
  function(x) sign(x)*sqrt(abs(x)),
  function(y) sign(y)*y^2)

Similarly I have scales for asinh, logit, inverse logit, and so on. Just one-liners! Certainly not worth their own package, but maybe they belong in a 'grab bag' package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant