PCO | R Documentation |
Function that performs Principal Coordinates Analysis on abundance matrix.
PCO(x, dim, distfun) ## Default S3 method: PCO(x, dim = 3) ## S3 method for class 'Dataset' PCO(x, dim = 3, distfun = dist)
x |
Distance matrix, must be a |
dim |
Number of dimensions to return. |
distfun |
Function that calculates distance matrix for abundance
table in |
This is the same as function pco
from the labdsv,
but it includes a Dataset
method.
A PCO object as defined by the pco
function.
Sur from Dangl Lab.
create_dataset
, pca
, PCA
,
pco
, dsvdis
data(Rhizo) data(Rhizo.map) Dat <- create_dataset(Rhizo,Rhizo.map) # distfun <- function(x) vegan::vegdist(x,method="bray") #requires vegan package distfun <- dist Dat.pco <- PCO(Dat,dim=2,distfun=distfun) summary(Dat.pco) plotgg(Dat.pco) plotgg(Dat.pco,shape="fraction",point_size=3) plotgg(Dat.pco,shape="fraction",col="accession",point_size=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.