Open dazu89 opened 5 months ago
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 the options(tikzDefaultEngine = 'xetex').
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?
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')
.