-
Notifications
You must be signed in to change notification settings - Fork 109
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
label_ functions for degrees (temp/lat/long); superscript notation for axes #260
Comments
We have considered longitude and latitude labels in the past (#180) and previously supported a wrapper of demo_continuous(c(49.67890), labels = label_number(suffix ="\u00b0"))
#> scale_x_continuous(labels = label_number(suffix = "°")) graticule_labels <- c("180*degree", "160*degree*W", "140*degree*W")
demo_discrete(graticule_labels, labels = label_parse())
#> scale_x_discrete(labels = label_parse()) Scientific notation with superscripts is now supported by default with the library(scales) #scales 1.1.0
demo_continuous(c(1, 2, 3, 4), labels = label_math())
#> scale_x_continuous(labels = label_math()) Created on 2020-02-22 by the reprex package (v0.3.0) |
These are definitely good, it would be nice if they were more visible. A few minor points for discussion:
|
@dpseidel It is great. So how can I use this within scale_x_continuous(), for example, which is the right way to put the graticule_labels into scale_x_continuous ? |
Copied from here in case it's appropriate/welcome here. I'd be happy to make a PR if it's of interest.
Some miscellaneous functionality here for
These could be further improved by
parse(text="10^2")
);Does this functionality exist somewhere else in the gg-verse?
The text was updated successfully, but these errors were encountered: