View source: R/plot_polygons.R
plot_polygons | R Documentation |
Plot chorolepth map of cases by grouping region
plot_polygons(region, sf, interact = TRUE, gridLonLat = TRUE)
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. |
data("EpiTrans") covid = GeoLocater(TimeDF = covid19,PointsDF = RndPts) plot_polygons(region = covid$region,sf = Taipei)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.