tmap_CreateBasemap: Create a 'tmap'-style basemap

View source: R/tmap_CreateBasemap.R

tmap_CreateBasemapR Documentation

Create a tmap-style basemap

Description

Function to create a tmap-style basemap.

Usage

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"))
)

Arguments

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

Details

Requires packages wtsGIS, tmap, and possibly tmaptools. See getStandardBBox for alternative, predefined bounding boxes.

Value

tmap-style basemap


wStockhausen/rDisMELS documentation built on March 27, 2022, 1 a.m.