Description Usage Arguments Value Examples
View source: R/coordID2coord.R
The function transforms the plot ID (that consits of 6 digits) to Spatialpoints in Swiss grid projection (old or new) or WGS projection. The latter can be used to plot the points on a leaflet (see examples).
1 | 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.
1 2 3 4 5 | 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.