View source: R/tmap_CreateBasemap.R
tmap_CreateBasemap | R Documentation |
Function to create a tmap-style basemap.
tmap_CreateBasemap( bbox = tmaptools::bb(xlim = c(-162, -134), ylim = c(54, 62)), colors.background = "grey85", colors.land = "grey45", colors.bathym = "grey65", aes.palette = list(cat = c("blue", "red"), div = c("blue", "red"), seq = c("blue", "red")) )
bbox |
- sf-style bounding box for map (default is for CGOA in lat/lon) |
colors.background |
- background color |
colors.land |
- color for land |
colors.bathym |
- color for bathymetry |
aes.palette |
- list with color palettes (or vectors) for cat, div, and seq "by" variables |
Requires packages wtsGIS, tmap, and possibly tmaptools.
See getStandardBBox
for alternative, predefined bounding boxes.
tmap-style basemap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.