Description Usage Arguments Value Examples

Plot time elapsed against the community dissimilarity for all possible pairs of time points.

1 2 3 |

`x` |
a taxon matrix with rows representing taxa and columns samples |

`time` |
vector with time steps |

`dissim` |
sample dissimilarity to use, should be supported by vegdist |

`normtaxa` |
divide each taxon vector in x by its sum |

`logdissim` |
take the logarithm of the dissimilarity before fitting a line |

`logtime` |
take the logarithm of the time interval before fitting a line |

`header` |
a string to be appended to the plot title (Time decay) |

`units` |
a string to describe the units of the time points (days, weeks etc) |

`plot` |
whether to do the plot |

a list with the time intervals, dissimilarity values, intersection, slope, p-value, adjusted R2, dissimilarity measure used and log status of dissimilarity measure

1 2 3 | ```
data("david_stoolA_otus")
data=rarefyFilter(david_stoolA_otus,min=10000)[[1]]
out.decay=timeDecay(data[,1:50], header="Stool subject A")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.