Created
August 16, 2016 22:01
-
-
Save cimentadaj/42ddee151ac7b5bbbbfc002551918d3f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(scales) # install.packages("scales") in case you don't have it | |
| m + scale_y_continuous(trans = log2_trans(), # choose the transformation | |
| breaks = trans_breaks("log2", function(x) 2^x), # the number of breaks | |
| labels = trans_format("log2", math_format(2^.x))) # and the labels |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment