ps_ordinate | R Documentation |
Perform an ordination that reduces a spatial phylogenetic data set into k
dimensions, using one of
several alternative ordination algorithms.
ps_ordinate(ps, method = c("nmds", "cmds", "pca"), k = 3, spatial = TRUE)
ps |
A |
method |
Ordination method, either "pca" (principal component analysis implemented via |
k |
Positive integer giving the desired number of output dimensions; default is |
spatial |
Logical indicating whether a spatial object (inherited from |
A matrix or spatial object with k
variables.
For visualization using ordination onto RGB color space, see ps_rgb()
.
ps <- ps_add_dissim(ps_simulate(50, 5, 5))
ord <- ps_ordinate(ps, method = "cmds", k = 4)
terra::plot(ord)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.