retrieve_top_bot_features_pca: Retrieve Top and Bot most contributing features of PCA

View source: R/plotting_functions.R

retrieve_top_bot_features_pcaR Documentation

Retrieve Top and Bot most contributing features of PCA

Description

Retrieve Top and Bot most contributing features of PCA

Usage

retrieve_top_bot_features_pca(
  pca,
  counts,
  component,
  n_top_bot,
  absolute = FALSE
)

Arguments

pca

A matrix/data.frame of rotated data

counts

the normalized counts used for PCA

component

the componenent of interest

n_top_bot

the number of top & bot features to take

absolute

If TRUE, return the top features in absolute values instead.

Value

a data.frame of top bot contributing features in PCA


vallotlab/ChromSCape documentation built on Oct. 15, 2023, 1:47 p.m.