Learn R Programming

labdsv (version 2.1-0)

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)

Value

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

Arguments

obj

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

Author

David W. Roberts droberts@montana.edu

Details

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

Examples

Run this code
if (FALSE) 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)

Run the code above in your browser using DataLab