glottomap_rips_filt: Title

View source: R/glottomap.R

glottomap_rips_filtR Documentation

Title

Description

Title

Usage

glottomap_rips_filt(
  glottodata,
  r = 0,
  maxscale,
  is_animate = FALSE,
  length.out = 20,
  movie.name = "filtration.gif"
)

Arguments

glottodata

a glottodata is an object of sf with geometry type as 'POINT'

r

a numerica number, the radius of buffers of all the points in glottodata, the default unit is "100km"

maxscale

a numeric number, maximum value of the rips filtration, the default unit is "100km"

is_animate

if TRUE, it will generate a GIF file, if FALSE, it will generate a tmap plot, the default value is FALSE

length.out

the amount of images to be generated in GIF file when 'is_animate = TRUE', the default value is '20'

movie.name

name of the GIF file, the default value is "filtration.gif"

Value

if 'is_animate = FALSE' return a tmap, if 'is_animate = TRUE' return a GIF file

Examples

glottopoints <- glottofilter(continent = "South America")
awk <- glottopoints[glottopoints$family == "Arawakan", ]
glottomap_rips_filt(glottodata = awk, r = 6, maxscale = 8)
## Not run: 
glottomap_rips_filt(glottodata = awk, r = 6, maxscale = 8, is_animate=TRUE)

## End(Not run)

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