Reads a data table containing compositional data (e.g. chemical concentrations)
a string with the path to the .csv file
either "bray" (for the Bray-Curtis distance) or "aitchison" (for Aitchison's central logratio distance). If omitted, the function defaults to 'aitchison', unless there are zeros present in the data.
an optional string with the name of one of R's built-in colour palettes (e.g., heat.colors, terrain.colors, topo.colors, cm.colors), which are to be used for plotting the data.
an object of class
compositional, i.e. a list with
the following items:
x: a data frame with the samples as rows and the categories as columns
method: either "aitchison" (for Aitchison's centred logratio
distance) or "bray" (for the Bray-Curtis distance)
colmap: the colour map provided by the input argument
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.