glottospace | R Documentation |
This function takes glottodata (either with or without metadata) and turns it into spatial points or polygons.
glottospace(glottodata, method = NULL, radius = NULL)
glottodata |
A glottodata table, or list of a glottodata table and metadata table(s) |
method |
Interpolation method, either "buffer" or "voronoi" (synonymous with "thiessen") |
radius |
In case interpolation method "buffer", the radius in km. |
A spatial version of glottodata. In case glottodata has metadata, only glottodata will be converted to spatial (but all metadata tables are kept). Object returned as sf object, or a list of which the first element is an sf object, depending on the input.
glottodata <- glottoget("demodata", meta = TRUE) glottospacedata <- glottospace(glottodata, method = "voronoi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.