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 around the points. If method "thiessen", a buffer will be created into the ocean, particularly relevant for island languages. |
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)
glottopols <- glottospace(glottodata, method = "voronoi")
glottodata <- glottofilter(country = "Netherlands")
glottopols <- glottospace(glottodata, method = "buffer", radius = 20)
glottomap(glottopols)
glottodata <- glottofilter(continent = "South America")
glottopols <- glottospace(glottodata, method = "thiessen")
glottomap(glottopols)
glottodata <- glottofilter(country = "Philippines")
glottopols <- glottospace(glottodata, radius = 100, method = "thiessen")
glottomap(glottopols)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.