tmap_grob | R Documentation |
Export a tmap plot object to a grob object (from the grid package).
tmap_grob(tm)
tm |
tmap object |
A grob object when one page is generated, or a list of grob objects when multiple pages are generated.
## Not run: data(World) m <- tm_shape(World) + tm_fill("well_being", id="name", title="Well-being") grb = tmap_grob(m) library(grid) grid.newpage() pushViewport(viewport(x = 0.1, y = 0.1, width = 0.2, height = 0.2)) grid.draw(grb) upViewport() pushViewport(viewport(x = 0.6, y = 0.6, width = 0.8, height = 0.8)) grid.draw(grb) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.