getVecOcc | R Documentation |
getVecOcc
downloads all publicly available vector occurrence points for a specified country (or countries) and returns this as a dataframe.
country
and ISO
refer to countries and a lower-level administrative regions such as French Guiana.Download Vector Occurrence points from the MAP database
getVecOcc
downloads all publicly available vector occurrence points for a specified country (or countries) and returns this as a dataframe.
country
and ISO
refer to countries and a lower-level administrative regions such as French Guiana.
getVecOcc(
country = NULL,
ISO = NULL,
continent = NULL,
species = "all",
extent = NULL,
start_date = NULL,
end_date = NULL,
version = NULL
)
country |
string containing name of desired country, e.g. |
ISO |
string containing ISO3 code for desired country, e.g. |
continent |
string containing continent (one of "Africa", "Americas", "Asia", "Oceania") for desired data, e.g. |
species |
string specifying the Anopheles species for which to find vector occurrence points, options include: |
extent |
an object specifying spatial extent within which PR data is desired, as returned by sf::st_bbox(). - the first column has the minimum, the second the maximum values; rows 1 & 2 represent the x & y dimensions respectively (matrix(c("xmin", "ymin","xmax", "ymax"), nrow = 2, ncol = 2, dimnames = list(c("x", "y"), c("min", "max")))) |
start_date |
string object representing the lower date to filter the vector occurrence data by (inclusive) |
end_date |
string object representing the upper date to filter the vector occurrence data by (exclusive) |
version |
(optional) The vector points dataset version to use. If not provided, will just use the most recent version of vector points data. (To see available version options, use listVecOccPointVersions) |
getVecOcc
returns a dataframe containing the below columns, in which each row represents a distinct data point/ study site.
COLUMNNAME
description of contents
COLUMNNAME
description of contents
COLUMNNAME
description of contents
autoplot
method for quick mapping of Vector occurrence point locations (autoplot.vector.points
).
# Download vector occurrence data for Brazil and map the locations using autoplot.vector.points
## Not run:
Brazil_vec <- getVecOcc(country = "Brazil")
autoplot(Brazil_vec)
# Download vector data for Madagascar and map the locations using autoplot
Madagascar_vec <- getVecOcc(ISO = "MDG", species = "All")
autoplot(Madagascar_vec)
# Subset by extent.
extent_vec <- getVecOcc(extent = matrix(c(100,13,110,18), nrow = 2), species = 'all')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.