Prepare your data and spatial data for SurvMapper (ggplot)
Your data that you want to include in the map, including the variable GEO_ID with the correct codes
Your geometry data, either SpatialPolygonsDataFrame or SpatialPointsDataFrame with variable GEO_ID
1 2 3 4 5 6
# load the included dummy data load(system.file("extdata", "dummy_data.rds", package = "SurvMaps")) # load the included EU/EEA SpatialPolygonsDataframe (includes Asia and Africa for background) load(system.file("extdata", "EU_AFR_AS_plgs.rds", package = "SurvMaps")) mymap <- PrepMap(data = dummy_data , geo = plg_map)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.