autocorVsTaxonNum: Compute slope for increasing number of taxa versus their...

View source: R/autocorVsTaxonNum.R

autocorVsTaxonNumR Documentation

Compute slope for increasing number of taxa versus their autocorrelation

Description

The taxa are added in decreasing order of abundance.

Usage

autocorVsTaxonNum(ts, lag = 1, plot = FALSE, col = "black",
  pch = "+")

Arguments

ts

a matrix with objects as rows and time points as columns

lag

the lag for which autocorrelation is computed

plot

plot the increasing number of taxa versus their autocorrelation

col

plot color

pch

plot point character

Value

a list with the taxon number, autocorrelations, slope and p-value

Examples

## Not run: 
N=10
A=generateA(N,c=0.1)
soi.ts=soi(N=N,I=1000,A=A,tend=100)
res=autocorVsTaxonNum(soi.ts, plot=TRUE)

## End(Not run)

hallucigenia-sparsa/seqtime documentation built on Jan. 9, 2023, 11:53 p.m.