Augment the loci table with information from a gt_pca object
augment_loci_gt_pca.Rd
Augment for gt_pca
accepts a model object and a gen_tibble
and adds
loadings for each locus to the loci table. Loadings for each component are stored in a
separate column, which is given name with the pattern ".loadingPC1",
".loadingPC2", etc. If data
is missing, then a tibble with the loadings is returned.
Usage
# S3 method for class 'gt_pca'
augment_loci(x, data = NULL, k = NULL, ...)
Value
A gen_tibble with a loadings added to the loci tibble (accessible
with show_loci()
. If data
is missing, a tibble of loadings.