| tmap_leaflet | R Documentation |
tmap_grob() returns a grob object ("plot" mode)
tmap_leaflet() a leaflet object ("view" mode).
tmap_leaflet(x, show = FALSE, ...)
tmap_grob(x, asp = NA, scale = 1, show = FALSE, ...)
x |
a tmap object. |
show |
show the map? |
... |
Arguments passed on to
|
asp, scale |
the desired aspect ratio and scale of the map. Only applicable for |
tmap_grob() returns a grob object ("plot" mode)
tmap_leaflet() a leaflet object ("view" mode).
In case small multiples are shown, a list is returned.
map = tm_shape(World) + tm_polygons()
tmap_leaflet(map, show = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.