Correlate PC projections with phenotype
1 | PCcorr_pheno(dat, pheno, showTop = 10, outFile, cex = 1.3)
|
dat |
(matrix or data.frame) data matrix - rows are variables, columns are samples. Can also be output of prcomp() call (object of "prcomp" class) |
pheno |
(matrix of numeric or factor) variables to correlate with PC projections. each column should correspond to a different variable Must have same ordering as sample values in phenotype table or correlation won't work |
showTop |
(integer) top PCs to show |
outFile |
(char) path to graphic output file (e.g. png or pdf file) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.