glottonmds: Nonmetric Multidimensional Scaling for a glottodist object

View source: R/glottonmds.R

glottonmdsR Documentation

Nonmetric Multidimensional Scaling for a glottodist object

Description

This is a wrapper around the monoMDS function in the vegan package.

Usage

glottonmds(glottodist = NULL, k = NULL, na.rm = FALSE, row2id = NULL)

Arguments

glottodist

A glottodist object

k

Number of dimensions. Either 2 or 3 for nmds.

na.rm

Whether na's should be removed (default is FALSE)

row2id

In case of nmds, specify what each row contains (either 'glottocode' or 'glottosubcode')

Value

a glottonmds object which can be plotted using glottoplot(glottonmds = ). See ?monoMDS for more details.

Examples

glottodata <- glottoget("demodata", meta = TRUE)
glottodist <- glottodist(glottodata = glottodata)
glottonmds <- glottonmds(glottodist, k = 2, row2id = "glottocode")
glottoplot(glottonmds = glottonmds)


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