PCcorr_pheno: Correlate PC projections with phenotype

Description Usage Arguments

View source: R/pcCorr_Pheno.R

Description

Correlate PC projections with phenotype

Usage

1
PCcorr_pheno(dat, pheno, showTop = 10, outFile, cex = 1.3)

Arguments

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)


shraddhapai/dataExplore documentation built on March 9, 2020, 9:17 a.m.