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
Degrees symbol broken #108
Comments
It's working fine for me. What's your
look like? If that's also broken, it's that. |
That's also broken... |
Thomas seems to think it's a base R problem (not ragg), to do with the default Windows graphics device (and introduced in R 4.2.2). I am not near a Windows machine at the moment, can you test this please:
(i.e. using the Unicode degree symbol rather than relying on the "degree" being converted into whatever symbol it's being converted into. If that works, we can use it as a work-around) |
That works |
Should be fixed in the dev-0.7 branch, by 9246d66 |
It works for base plot but no the SOgg version. |
Tracking it back, in the ggplot version I think it is because for ggplot we have conveniently been using the https://github.com/edzer/sp/blob/f8488cfbe10deb99c74b2ae2b12524f2bc01524f/R/gridlines.R#L14 |
For our ggplot rendering it's happening in
(Our graticule labels, containing the unicode degree symbol, are used when we base-plot but not ggplot - for ggplot we are allowing geom_sf to do it, completely independently of the labels that we construct. It might be possible to suppress geom_sf's label handling and pass our own, but I'm not sure about that ...) |
@Maschette I've added a borderline ridiculous and certainly ill-advised workaround in 056a49a. Hopefully the underlying issue gets resolved soon, but in the meantime this might get us by. Could you test pls ... |
Confirmed that this is a known bug in R 4.2.2 (https://bugs.r-project.org/show_bug.cgi?id=18440) and has been fixed for the next R version (wch/r-source@ffa365b). So if our dodgy patch works, we should only need to actually use it if the user is running R 4.2.2 on Windows. |
The degrees symbol seems to be broken in both normal and SOgg plotting options?
Created on 2023-02-02 with reprex v2.0.2
The text was updated successfully, but these errors were encountered: