pcoaplus | R Documentation |
Principal coordinates analysis, plus
pcoaplus(data, distmat, sample_id_var = SampleID, num_axes = 2)
## S3 method for class 'pcoaplus'
plot(x, ...)
data |
A data frame giving information on the objects for the PCoA. |
distmat |
A matrix or |
sample_id_var |
The column in |
num_axes |
The number of PCoA axes to return in the output. |
x |
A tibble returned by |
... |
Additional aesthetic mappings for ggplot. |
For pcoaplus
, a tibble with new columns giving the position
of each object along the principal coordinate axes. We add an additional
class to the resultant tibble ("pcoaplus"
) to facilitate plotting.
The attribute "pctvar" gives the percent variation explained by each
principal coordinate axis. The attribute "axislabel" contains formatted
axis labels for plotting.
For plot.pcoaplus
, a ggplot object.
plot(pcoaplus)
: Make a principal coordinates scatter plot
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.