R/plotting_functions.R
retrieve_top_bot_features_pca.RdRetrieve Top and Bot most contributing features of PCA
retrieve_top_bot_features_pca( pca, counts, component, n_top_bot, absolute = FALSE )
| 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. |
a data.frame of top bot contributing features in PCA