| imed_map | R Documentation |
Coordinate-provenance-aware IMED map
imed_map(x, geo_min = c("GEO-4", "GEO-3", "GEO-2"), study_id = NULL)
x |
An 'imed_db' object, as returned by 'imed_data()'. |
geo_min |
Character vector of coordinate classes to retain, chosen from '"GEO-4"', '"GEO-3"' and '"GEO-2"' (default all three). Only sites whose stored class is in this set and that have numeric coordinates are drawn. |
study_id |
Optional character vector of 'Study_ID' values used to restrict the records. |
A 'ggplot' object with one point for each site that has numeric coordinates and a retained coordinate class. The function stops if the suggested package 'sf' is not installed.
if (requireNamespace("sf", quietly = TRUE)) {
db <- imed_data(tables = c("SITES", "SITE_COORDINATE_CLASS"),
validate = FALSE)
imed_map(db)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.