calcRoundPropVar: Return proportion of variation explained.

View source: R/ggbootMV-helper.R

calcRoundPropVarR Documentation

Return proportion of variation explained.

Description

Convenience function to return the proportion of variation explained for the desired principal components, rounded to two decimal places.

Usage

calcRoundPropVar(vec, comp = 1:2)

Arguments

vec

numeric vector. Contains component-wise proportion of variation.

comp

integer vector. Specifies the principal components whose proportion of variation must be returned. Defaults to 1:2.

Value

Numeric vector.


MiguelRodo/ggboot documentation built on Nov. 9, 2023, 5:45 p.m.