View source: R/extract_values.R
extract_sb_values | R Documentation |
extract_sb_values Extract values from sample based PCA
extract_sb_values(clustered_data, ids, meta, grp, cluster = NULL)
clustered_data |
Object containing clustered data (expects output from 'prcomp') |
ids |
Character vector of ids for each row in 'clustered_data$x', corresponding to labels in 'grps' |
meta |
Data frame containing translation from id to group |
grp |
Character value identifying the column of 'meta' to use for group identifier |
cluster |
Data frame containing sample ID and the assigned kmeans cluster, as returned by 'kmeaner()' |
a data frame with values for SampleID, Group, PC1, and PC2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.