get_varct: get the contribution of variables

Description Usage Arguments Value Examples

View source: R/plot-ggordpoint.R

Description

get the contribution of variables

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'pcoa'
get_varct(obj, ...)

get_varct(obj, ...)

## S3 method for class 'prcomp'
get_varct(obj, ...)

## S3 method for class 'pcasample'
get_varct(obj, ...)

Arguments

obj

prcomp class or pcasample class

...

additional parameters.

Value

the VarContrib class, contained the contribution and coordinate of features.

Examples

1
2
3
4
5
6
library(phyloseq)
data(GlobalPatterns)
subGlobal <- subset_samples(GlobalPatterns,
         SampleType %in% c("Feces", "Mock", "Ocean", "Skin"))
#pcares <- get_pca(subGlobal, method="hellinger") 
#varres <- get_varct(pcares)

MicrobiotaProcess documentation built on April 18, 2021, 6 p.m.