Closed elipousson closed 4 months ago
The label_axes
controls axis labels, not axis titles, so this seems to work as intended.
The reason you're seeing the x
and y
titles is because the text layers converts the geometry columns into regular x and y aesthetics that then, through the default labelling mechanism, lend their names to the axis titles.
Thanks, @teunbrand. I think I never encountered this because I usually use theme_void()
as the base for all my ggplot2 mapping work but recently switched to a different workflow for the theme. An unexpected hiccup in my workflow but definitely not a bug.
I found a problem with
geom_sf_text()
andgeom_sf_label()
forcing the display of x and y axis labels when labels should be suppressed.I expected a final call to
coord_sf()
to over-ride the default behavior forgeom_sf_text()
andgeom_sf_label()
(consistent withgeom_sf()
).Here is the code to reproduce the bug:
Created on 2024-04-04 with reprex v2.1.0