cooccurplot: Heatmap-style plot of species co-occurrence across samples.
Description
Calculate the correlation between taxonomic counts (possibly
transformed), and display a clustered heatmap-style image summarizing
distances between taxonomic groups.
Color scheme for image plot; the default is a color-blind
safe divergent pallete from RColorBrewer.
Value
The function is evaluated for its side effect, an image with
appropriate annotations.
Details
This function takes the transpose of the communities matrix and
calucates pairwise correlation coefficients using cor with
method method. The correlation matrix is converted to a
distance matrix using distfun, then clustered with
hclustfun, transformed to a dendrogram ordered by the row or
column means of the correlation matrix. The dendrogram order is used
to present the correlation matrix as a (lower triangular) heat map,
with intensity reflecting strength of correlation.
The strength of correlation between two taxa can be found by
identifying the taxa on the diagonals, and finding the intersection of
the taxa in the heatmap.