glottonmds | R Documentation |
This is a wrapper around the monoMDS function in the vegan package.
glottonmds(glottodist = NULL, k = NULL, na.rm = FALSE, row2id = NULL)
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') |
a glottonmds object which can be plotted using glottoplot(glottonmds = ). See ?monoMDS for more details.
glottodata <- glottoget("demodata", meta = TRUE)
glottodist <- glottodist(glottodata = glottodata)
glottonmds <- glottonmds(glottodist, k = 2, row2id = "glottocode")
glottoplot(glottonmds = glottonmds)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.