extract_species: Internal helper function to extract most contributing species...

View source: R/internal_functions.R

extract_speciesR Documentation

Internal helper function to extract most contributing species from vegan's cca and rda objects

Description

Internal helper function to extract most contributing species from vegan's cca and rda objects

Usage

extract_species(mod, axis, sides, species, n)

Arguments

mod

cca or rda object

axis

The ordination axis for which the extraction should be made for

sides

Character vector specifying which columns should be shown. Options: "both" shows n/2 from both sides of the axis ordered by species scores; "contrib" orders the species based on "contributions" to the axis (squared species scores); pos orders the species based on the species score to the axis and "neg" orders the species based on the inverted species score to the axis.

species

A character vector of species entries to be forced to the plot. The remaining of species will be taken from sides and n arguments.

n

Number of columns (=species) to show

Author(s)

Mikko Vihtakari


MikkoVihtakari/veganUtils documentation built on May 3, 2023, 9:58 a.m.