View source: R/dim_reduction.R
add_pcs | R Documentation |
Add Principal Components Analysis Loadings to a tidy or triple omics dataset.
add_pcs(
tomic,
value_var = NULL,
center_rows = TRUE,
npcs = NULL,
missing_val_method = "drop_samples",
label_percent_varex = TRUE,
verbose = TRUE
)
tomic |
Either a |
value_var |
An abundance value to use with |
center_rows |
center rows before performing PCA |
npcs |
number of principal component loadings to add to samples (default is number of samples) |
missing_val_method |
Approach to remove missing values:
|
label_percent_varex |
If true then PCs will be labelled by the percent of variability they explain. |
verbose |
extra reporting messages |
A tomic
object with principal components added to samples.
add_pcs(brauer_2008_triple, npcs = 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.