Description Usage Arguments Details

If the factor defined on the x-axis is a sample but there are actually replicates for each sample, then defining the plot with aes(x=sample) and then collapse_heatmap yields the mean of each replicate.

1 | ```
collapse_heatmap(p, collapse_fn = mean, ...)
``` |

`p` |
a ggplot heatmap with x, y, and fill aesthetics defined |

`collapse_fn` |
the function to use to combine all the inner values |

`...` |
additional arguments to collapse_fn |

Similarly, for the y-axis, if you're interested in higher-order taxa, set aes(y=Genus) or similar and then collapse_heatmap to yield the mean abundance for that taxa.

If both axes contain subgroups, this averages over all of them.

eclarke/heatmappr documentation built on May 13, 2017, 12:06 p.m.

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.