Community ecology

Community ecology and biodiversity from a spreadsheet

Community ecology is a sequence of decisions — how to transform the abundance table, how to measure diversity, whether groups differ, and which species drive the difference. Magic Stat puts that sequence in one dialog, from the transformations through to the indicator species, with figures ready for the manuscript.

The honest part

The community-ecology workflow, and what it is not

The module follows the way an ecologist actually works through a community matrix: transform it (Hellinger, chord, Wisconsin, presence/absence, logs and roots), summarise it (alpha diversity, accumulation and rarefaction curves), compare groups (PERMANOVA, ANOSIM, PERMDISP, Mantel), ordinate it (PCA, PCoA, NMDS, CA, DCA, RDA, CCA), and go further with functional diversity, phylogenetic diversity, indicator species, TWINSPAN and variation partitioning.

The reference implementations for most of these live in vegan and its companions in R. If your lab already works in vegan, the honest advice is to stay there — the indices are the same, and vegan has more of them. Magic Stat matters when you want the analysis, the figures and the methods paragraph to come out of the same spreadsheet without a script, and when the person doing the analysis is not the person who wrote the script.

The module stops at the community matrix — the species and the sites. Everything downstream of that it covers: how the matrix is transformed, how it is summarised and compared, how it is ordinated, and how the result is written up. If what you need falls outside that boundary, the module will not pretend otherwise.

What it does

What Magic Stat gives you for community ecology

How it works

From a community matrix to a result

  1. Load the matrix. sites in rows, species in columns — the abundances as they are; the transformation is a setting.
  2. Transform if needed. Hellinger and chord are the usual starting points for abundance data; the whole list is in the dialog.
  3. Choose the analysis. alpha, beta, ordination, functional, phylogenetic or indicator — each tab has its own variables and options.
  4. Compare groups. with PERMANOVA, ANOSIM or PERMDISP when you have a grouping factor, using the same dissimilarity as the ordination.
  5. Export. figures to the gallery, and the analysis with its settings and interpretation into the report (.docx, .html or .md).
Options

The settings, in the dialog

Dissimilarities: Bray–Curtis · Jaccard · Sørensen · Horn–Morisita · Euclidean · Manhattan · Canberra. Ordination methods: PCA · PCoA · NMDS · CA · DCA · RDA · CCA.

Permutations are set in the dialog for the permutation-based tests. With a grouping column, alpha indices are also compared between groups (ANOVA or Kruskal–Wallis per index, with FDR correction).

Frequently asked

Community-ecology questions, answered honestly

Is this a replacement for vegan?

No. vegan in R is the reference for distance-based ecology and has more indices and options. Magic Stat covers the common workflow end to end from a spreadsheet and writes the report; if your analyses already live in vegan scripts, keep them.

Which dissimilarity should I use?

Bray–Curtis is the convention for abundance data, Jaccard or Sørensen for presence/absence, and Euclidean for standardised continuous variables. Whatever you choose for the ordination, use the same one for PERMANOVA so the figure and the test describe the same thing.

What is the difference between rarefaction and accumulation curves?

Rarefaction rescales every sample to a common number of individuals, so sites with different sampling effort can be compared; accumulation shows how observed richness grows as samples or individuals are added in order. Both are computed in the accumulation tab, for richness and for the other indices.

Can I use the figures in a paper?

Yes — figures export as PNG, SVG, PDF, JPEG or TIFF with the legends outside the plot and scientific palettes, and the analysis is written into a report with its settings.

Is my data uploaded somewhere?

No. Everything runs on your computer; the only automatic signal is an anonymous installation counter.

NMDS analysis → PERMANOVA → Cluster analysis →