View source: R/CreateBaseMap.R
CreateBaseMap | R Documentation |
Create different type of base map on plot
CreateBaseMap(basemap, bnd, gridLonLat, interact, alphaGrid = 1)
basemap |
Object of class 'sf'; basemap plotting on map |
bnd |
A 4-length numerical vector of the form c(xmin, ymin, xmax, ymax) which gives the number of x and y coordinates' ranges of the map. |
gridLonLat |
Logical; draw latitude and longitude grid on non-interactive map. |
interact |
Logical; if TRUE, plot thematic interactive map; if FALSE, static plotting non-interactive thematic map. |
alphaGrid |
0~1; transparency number between 0 (totally transparent) and 1 (not transparent). |
data("EpiTrans") CreateBaseMap(Taiwan,bnd = bnd_modify(Taiwan),gridLonLat = TRUE,interact = TRUE,alphaGrid = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.