tmap_leaflet {tmap} | R Documentation |
Export tmap to the format of the used graphics mode
Description
Usage
tmap_leaflet(x, show = FALSE, ...)
tmap_grob(x, asp = NA, scale = 1, show = FALSE, ...)
Arguments
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 |
Value
-
tmap_grob()
returns agrob
object ("plot"
mode) -
tmap_leaflet()
aleaflet
object ("view"
mode). In case small multiples are shown, a list is returned.
Examples
map = tm_shape(World) + tm_polygons()
tmap_leaflet(map, show = TRUE)
[Package tmap version 4.1 Index]