Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as.dsvord

Convert existing and external ordinations to dsv format


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

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)

References

Examples

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

Ordination and Multivariate Analysis for Ecology

v2.0-1
GPL (>= 2)
Authors
David W. Roberts <droberts@montana.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.