-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Legend mis-alignement for parsing greek letters using scale::parse_format #4814
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
Comments
While poorly documented, the default justification for expressions in labels has always been right-aligned. This can of course be overwritten in the guide. I can't comment on the reason for this decision as it predates my time with ggplot2 (meaning it is ancient 🙂). This also means that it is probably too late to change as others may likely rely on the default behaviour... |
This is a typical sunk cost fallacy. It will take more toll to fix in future. |
Well, it's not really a bug so there is nothing to fix later. It was a poorly documented behaviour that is now properly documented. |
Do you have the link to the docu? |
Lines 34 to 36 in eb0010e
|
Thank you so much for sharing. |
In the first figure, the right-hand side legend is correctly aligned with the regular ggplot code. However, the greek characters were mis-aligned when
labels=parse_format()
is used to parse "microgram" in the second figure, as indicated by the gap (white space) next to the legend "1 ug". The erratic alignment behavior sounds like a bug to me.Created on 2022-04-25 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: