varEvol: Plot mean variance versus the number of time points.

Description Usage Arguments Value Examples

View source: R/varEvol.R

Description

Plot the mean variance across all taxa for an increasing number of time points. If groups are given, compute the mean of beta diversity (assessed with Bray Curtis) across samples for each time point. Groups are interpreted as replicates, such that each group is assumed to cover the same time points in the same order.

Usage

1
varEvol(x, groups = c(), plot = TRUE, sd = FALSE)

Arguments

x

a community matrix with rows representing taxa and columns time points

groups

a vector with group assignments and as many entries as there are samples

plot

do the plot

sd

use the standard deviation instead of the variance

Value

a list with variances (or standard deviations if sd is true) and the intersection, slope, pval and adjR2 of the linear regression of variances against time

Examples

1
2
3
N=20
ts=glv(N=N,generateA(N))
out=varEvol(ts)

hallucigenia-sparsa/seqtime documentation built on June 16, 2018, 1:49 p.m.