strat2d.Rd
static visualization of PCA pairs
strat2d(
pcmat,
pcinds = 5:8,
superpop = "AFR",
GGally = FALSE,
superOnly = FALSE
)
matrix with columns PC1...PCn
numeric vector with suffixes from colnames(pcmat) to select for visualization
character(1) three letter superpopulation code, see `data(igsr_pops)`
logical(1) if TRUE, use `GGally::ggpairs` to visualize, otherwise `pairs()`
logical(1) defaults to FALSE; if TRUE, do not limit to one superpopulation
Side effects of plotting with either `pairs` or `GGally`
data(pc_190kloci)
strat2d(pc_190kloci)