View source: R/coordID2coord.R
coordID2coord | R Documentation |
The function transforms the plot ID (that consits of 6 digits) to a tibble of class sf with a geometry that contains the points in Swiss grid projection (old or new) or WGS projection. The latter can be used to plot the points on a leaflet (see examples).
coordID2coord(coordID, Z7 = TRUE, projection = "CH-old")
coordID |
Vector with plot coordinates |
Z7 |
Logical |
projection |
What projection should be used for the coordinates. One of
|
Coordinates of sampling locations as SpatialPoints
of package sp.
require(leaflet)
tmp <- coordID2coord(coordID = c(645260), Z7 = FALSE, projection = "WGS")
leaflet() %>%
addTiles() %>%
addCircles(data = tmp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.