Skip to contents

[Stable] Return a image map object of all of the eLTER sites belonging to an eLTER Network (e.g. LTER Italy network), as a stored into DEIMS-SDR.

Usage

produce_network_points_map(networkDEIMSID, countryCode)

Arguments

networkDEIMSID

A character. The DEIMS ID of the network from DEIMS-SDR website. DEIMS ID information here and Complete list of ILTER networks here.

countryCode

A character following the ISO 3166-1 alpha-3 codes. This ISO convention consists of three-letter country codes as defined in ISO 3166-1. The ISO 3166 standard published by the International Organization for Standardization (ISO), to represent countries, dependent territories, and special areas of geographical interest. The map produced by this function will be limited only to the country indicated in this parameter, if the network has a extraterritorial sites those will not represented.

Value

The output of the function is a tmap plot containing an image of geographic distribution of the network of sites present in the chosen country.

The function output

Map of LTER-D Germany sites

References

Ooms J (2014). “The jsonlite Package: A Practical and Consistent Mapping Between JSON Data and R Objects.” arXiv:1403.2805 [stat.CO]. https://arxiv.org/abs/1403.2805.

Pebesma E (2018). “Simple Features for R: Standardized Support for Spatial Vector Data.” The R Journal, 10(1), 439--446. doi:10.32614/RJ-2018-009 .

Hijmans RJ (2022). raster: Geographic Data Analysis and Modeling. R package version 3.5-15, https://CRAN.R-project.org/package=raster.

Tennekes M (2018). “tmap: Thematic Maps in R.” Journal of Statistical Software, 84(6), 1--39. doi:10.18637/jss.v084.i06 .

Wickham H, François R, Henry L, Müller K (2022). dplyr: A Grammar of Data Manipulation. R package version 1.0.9, https://CRAN.R-project.org/package=dplyr.

Müller K, Wickham H (2022). tibble: Simple Data Frames. R package version 3.1.7, https://CRAN.R-project.org/package=tibble.

Wickham H (2022). httr: Tools for Working with URLs and HTTP. R package version 1.4.3, https://CRAN.R-project.org/package=httr.

Author

Alessandro Oggioni, phD (2020) oggioni.a@irea.cnr.it

Examples

if (FALSE) {
# Italian sites
map <- produce_network_points_map(
  networkDEIMSID =
  "https://deims.org/network/7fef6b73-e5cb-4cd2-b438-ed32eb1504b3",
  countryCode = "ITA"
)
map

# German sites
map_LTERGermanSites <- produce_network_points_map(
  networkDEIMSID =
  "https://deims.org/networks/e904354a-f3a0-40ce-a9b5-61741f66c824",
  countryCode = "DEU"
)
map_LTERGermanSites +
  tmap::tm_compass(type = "8star", position = c("right", "bottom")) +
  tmap::tm_scale_bar(position = c("right", "bottom"))
}