plot_points | R Documentation |
Plot the spatial points of cases; point pattern is the most direct and exact way to visualize spatial pattern of an outbreak.
plot_points( x, y, t = NULL, Rj = NULL, crs = NULL, bnd = NULL, basemap = NULL, interact = TRUE, gridLonLat = TRUE, title = "" )
x |
Vector of x coordinates of data points. |
y |
Vector of y coordinates of data points. |
t |
Vector of time of data points. |
Rj |
Vector of individual reproductive numbers of data points. |
crs |
Coordinate reference system of data points: numeric (EPSG code), object of class 'crs', or input string for st_crs; if NULL, using CRS of basemap, or using WGS84 (EPSG:4326). |
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. |
basemap |
Object of class 'sf'; basemap plotting on map. |
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. |
title |
Main title of plot. |
data("EpiTrans") plot_points(x = dengue$long, y= dengue$lat, crs= NULL,basemap = Taiwan)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.