as.dsvord: Convert existing and external ordinations to dsv format

Description Usage Arguments Details Value Note Author(s) References Examples

View source: R/as.dsvord.R

Description

This function updates ordinations from previous versions of labdsv and converts ordinations of class ‘boral’ from package boral, list output objects from package Rtsne, class ‘metaMDS’ objects from package vegan, or class ‘ordiplot’ objects from package vegan into objects of class ‘dsvord’ for plotting and comparison.

Usage

1
as.dsvord(obj)

Arguments

obj

an object of class nmds, pco, pca, boral, metaMDS, or ordiplot or an output list object from Rtsne

Details

as.dsvord calls internal format-specific conversion functions to produce an object of class ‘dsvord’ from the given input.

Value

an object of class ‘dsvord’, i.e. a list with items ‘points’ and ‘type’ (optionally more), and attributes ‘call’ and ‘timestamp’ and ‘class’.

Note

LabDSV recently converted all ordination objects to a single class with an ancillary ‘type’ specification to differentiate ordination types.

Author(s)

David W. Roberts droberts@montana.edu http://ecology.msu.montana.edu/droberts/droberts.html

References

http://ecology.msu.montana.edu/labdsv/R/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: data(bryceveg)
dis.bc <- dsvdis(bryceveg,'bray')
library(vegan)
demo.metaMDS <- metaMDS(bryceveg)
metamds.dsv <- as.dsvord(demo.metaMDS)
demo.ordi <- plot(demo.metaMDS)
ordip.dsv <- as.dsvord(demo.ordi)
library(boral)
demo.boral <- boral(bryceveg,row.eff='random')
boral.dsv <- as.dsvord(demo.boral)

## End(Not run)

labdsv documentation built on Aug. 4, 2019, 5:03 p.m.

Related to as.dsvord in labdsv...