Description Usage Arguments Value Examples
The function transforms the site ID (that consits of 6 digits) to the SpatialPolygons of squares (with a given sidelength) 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 | makesq(coordID, projection = "CH-old", sidelength = 1000)
|
coordID |
Vector with site coordinates |
projection |
What projection should be used for the coordinates. One of
|
sidelength |
The sidelength (in m) of the squares. |
Shapefile (as SpatialPolygons
of package sp) of the sampling squares.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.