CreateBaseMap: Create base map

View source: R/CreateBaseMap.R

CreateBaseMapR Documentation

Create base map

Description

Create different type of base map on plot

Usage

CreateBaseMap(basemap, bnd, gridLonLat, interact, alphaGrid = 1)

Arguments

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

Examples

data("EpiTrans")

CreateBaseMap(Taiwan,bnd = bnd_modify(Taiwan),gridLonLat = TRUE,interact = TRUE,alphaGrid = 1)

wenlab501/EpiTrans documentation built on July 8, 2022, 9:14 a.m.