tmap_mode()
tmap_mode("plot")
tm_shape(World) + tm_polygons("HPI")
tmap_mode("view")
tm_shape(World) + tm_polygons("HPI")
ttm()
tm_shape(World) + tm_polygons("HPI")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.