geomtextpath icon indicating copy to clipboard operation
geomtextpath copied to clipboard

geom_textsf seems to ignore remove_long=F

Open tcwilkinson opened this issue 1 year ago • 0 comments

First: thanks for a great extension to ggplot2! Extremely useful.

A small potential bug:- I suspect that geom_textsf does not respect remove_long=F param (and perhaps some other params?), based on the below warning.

In layer_sf(geom = GeomTextsf, data = data, mapping = mapping, stat = stat,  :
  Ignoring unknown parameters: `remove_long`, `gap`, `padding`, `text_only`, and `halign`

This means that where text would be longer than the associated line, it silently disappears from the plot. Missing text around a non-straight sf line layer is where I initially noticed this issue anyway. This may be desirable often (so probably should be default), but in some cases you want force the text to appear (even if that means creating a notional continuation of any particular segment)?

tcwilkinson avatar Oct 11 '23 15:10 tcwilkinson