Popup on a shape using tmap
问题 I have made a map unsing tmap to include in a shiny app using leaflet . I have roughly what I want: a thematic map with fill color based on a SpatialPolygonsDataFrame, and when you click the map, a popup with extra information on the polygon. I would like to change the popup for a better layout when clicking. By default, the name in the dataset is displayed, but it is not really user friendly. Here is a reproducible example. library(tmap) library(leaflet) data(Europe) tmap_mode("view") carte