-
Notifications
You must be signed in to change notification settings - Fork 295
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
Custom formating of axis tick labels #2389
Labels
feature
a feature request or enhancement
Comments
Interesting thought, but how do we make sure that this works across all graphic devices, given that graphics is not part of the package testing code? Maybe start with implementing your special case only? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Apparently,
ggplot2
relies onsf
to draw the graticule and axes labels. Currently, when trying to plot totikzDevice
the usage of plotmath expression for the degree symbol in the axes labelspaste0(abs(x), "*degree", dir[pos])
(seedegreeLabelsEW
function) leads to an error as ‹there is specifically no support for input of plotmath characters as unicode since the user can simply input Latex math directly› (Tikz User Manual).I wanted to suggest to hard code the degree symbol as
\u00B0
which is rendered correctly with the default graphic device but also with tikzDevice using theoptions(tikzDefaultEngine = 'xetex')
.The text was updated successfully, but these errors were encountered: