Plots either the first 2 or 3 vectors of PCoA.

plot_pcoa(pcoa, num_components = 2, col = NULL, col_palette = NULL)

Arguments

pcoa

object of class "pcoa", as produced by pcoa_wsaf() function.

num_components

numeric for number of components used. Default = 2.

col

vector by which samples are coloured.

col_palette

vector of colours for each group.