htmlwidget
for mapshapermapshaper is an incredibly powerful set of tools to simplify and edit maps from Shapefile
, geoJSON
, TopoJSON
, and other file formats. This htmlwidget
brings mapshaper
to your R
experience.
#devtools::install_github("timelyportfolio/mapshaper_htmlwidget")
library(mapshaperWidget)
library(tmap)
library(sp)
data(World)
plot(World)
mapshaper(World)
Shiny
so the export result is returned to R
or the hover info is provided to R
.htmlwidgets
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.