glottofiltermap | R Documentation |
Select languages by drawing or clicking on a map. The output should be assigned to a new object. In case you want to select languages based on a (non-spatial) condition, you might want to use glottofilter() instead.
glottofiltermap(glottodata = NULL, mode = NULL, ...)
glottodata |
Spatial glottodata object |
mode |
You can choose here whether you want to interactively select languages by clicking on them (mode = 'click', default) or by drawing a shape around them (mode = 'draw'). |
... |
Additional arguments to pass to glottofilter |
A set of languages selected from the original glottodata object
## Not run:
# Interactive selection by clicking on languages:
selected <- glottofiltermap(continent = "South America")
glottomap(selected)
# Interactive selection by drawing a shape:
selected <- glottofiltermap(continent = "South America", mode = "draw")
glottomap(selected)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.