getCluster | R Documentation |
This function returns the cluster associated to each feature from a mixOmics object.
getCluster(X, user.block = NULL, user.cluster = NULL)
X |
an object of the class: |
user.block |
a vector to filter the result and return the features of the specified blocks. |
user.cluster |
a vector to filter the result and return only the features of the specified clusters |
For each feature, the cluster is assigned according to the maximum contribution on a component and the sign of that contribution.
A data.frame containing the name of feature, its assigned cluster and other information such as selected component, contribution, sign, ...
selectVar
demo <- suppressWarnings(get_demo_cluster())
pca.cluster <- getCluster(demo$pca)
spca.cluster <- getCluster(demo$spca)
pls.cluster <- getCluster(demo$pls)
spls.cluster <- getCluster(demo$spls)
block.pls.cluster <- getCluster(demo$block.pls)
block.spls.cluster <- getCluster(demo$block.spls)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.