plot_polygons: Draw Choropleth map

View source: R/plot_polygons.R

plot_polygonsR Documentation

Draw Choropleth map

Description

Plot chorolepth map of cases by grouping region

Usage

plot_polygons(region, sf, interact = TRUE, gridLonLat = TRUE)

Arguments

region

Vector of region (polygon) name of data points.

sf

Object of class 'sf'; polygon layer of statistical data (region data of these data points).

interact

Logical; if TRUE, plot thematic interactive map; if FALSE, static plotting non-interactive thematic map.

gridLonLat

Logical; draw latitude and longitude grid on non-interactive map.

Examples

data("EpiTrans")

covid = GeoLocater(TimeDF = covid19,PointsDF = RndPts)

plot_polygons(region = covid$region,sf = Taipei)

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