print.tmap | R Documentation |
Draw thematic map. If the tmap mode is set to "plot"
(see tmap_mode
), the map is plot in the current graphics device. If the mode is set to "view"
, the map is shown interactively as an htmlwidget.
## S3 method for class 'tmap'
print(
x,
vp = NULL,
return.asp = FALSE,
mode = getOption("tmap.mode"),
show = TRUE,
knit = FALSE,
options = NULL,
...
)
knit_print.tmap(x, ..., options = NULL)
x |
tmap object. A tmap object is created with |
vp |
|
return.asp |
Logical that determines whether the aspect ratio of the map is returned. In that case, |
mode |
the mode of tmap: |
show |
logical that determines whether to show to map. Obviously |
knit |
should |
options |
options passed on to knitprint |
... |
not used |
If mode=="plot"
, then a list is returned with the processed shapes and the metadata. If mode=="view"
, a leaflet
object is returned (see also tmap_leaflet
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.