0

Does anyone know how to turn off the legend on an interactive tmap map without having to convert it to a leaflet object? tm_layout(legend.show = FALSE) works in plot mode but doesn't seem to do anything in view mode.

Sharon
  • 3,676
  • 3
  • 23
  • 20
  • As far as I know this is not possible. For interactive maps the `leaflet` package seems to give you more control than `tmap` (at the cost of having to learn additional syntax) – Jindra Lacko Apr 24 '19 at 18:27
  • 3
    Does this answer your question? [Remove legend in tmap in R](https://stackoverflow.com/questions/57031445/remove-legend-in-tmap-in-r) – Francis Barton Apr 09 '20 at 17:09
  • Even though you asked your question first (!), someone else's version of this question already got answered here: https://stackoverflow.com/questions/57031445/remove-legend-in-tmap-in-r so I've flagged this as a duplicate. The accepted answer there should deal with your issue here. – Francis Barton Apr 09 '20 at 17:10

0 Answers0