glottofiltermap: Filter languages interactively from a map

View source: R/glottofilter.R

glottofiltermapR Documentation

Filter languages interactively from a map

Description

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.

Usage

glottofiltermap(glottodata = NULL, mode = NULL, ...)

Arguments

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

Value

A set of languages selected from the original glottodata object

Examples

## 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)

SietzeN/glottospace documentation built on June 15, 2024, 10:45 p.m.