trait.space: 'trait.space' (maybe) make a trait space of species...

Description Usage Arguments Details Value Note Author(s)

View source: R/trait.space.R

Description

trait.space (maybe) make a trait space of species co-existence

Usage

1
2
trait.space(comm, abundance = FALSE, plot = TRUE, coexist = NULL,
  mask = NULL, ...)

Arguments

comm

Community matrix (communities in rows, species in column); NAs would probably be a bad idea

abundance

Work with species abundances? Default FALSE

plot

Produce a plot of the space at the end of the run? Default TRUE

coexist

Provide a co-existence matrix to use for fitting (see below). Default to NULL to calculate one as part of the run. The matrix will be returned at the end of the run so you can work with it later. It is *definitely* worth calculating this once, as I've almost maliciously not optimised this code.

mask

matrix of TRUE and FALSE, where only elements of the coexistence matrix where this is TRUE will be used in the calculations.

...

additional arguments to be passed to the optimisation routine. See the notes for advice on this.

Details

Attempts to place all species in a 2-D space where distance between species is directly related to their proportional coexistence. I.e., if species are >=1 unit distant from each other, they never coexit, if they're on top of one-another, they always co-exist. See notes.

Value

The data that were plotted last, the PCA and clade.matrix to speed later plots, and the colours used.

Note

It is *strongly* advised that you check the convergence of this routine, and play around with the algorithm used to assess convergence. This came about as a result of a NutNet (http://www.nutnet.umn.edu/) meeting; please don't run away and use this without bringing me on-board, or at the very least informing the organisers of NutNet. Please don't become "that guy" and ignore this...

Author(s)

Will Pearse


willpearse/willeerd documentation built on May 4, 2019, 6:27 a.m.