plotPCs: plot PCs

Description Usage Arguments Examples

Description

A tool used to plot the cross product of the normalized data and the eigenvectors, it relies only on the standard library ploting function

Usage

1
plotPCs(pcs, pos, data, cats, lab = c("xlabel", "ylable", "Title"))

Arguments

pcs

the eiginvectors

pos

a list indicating which two dimensions should be ploted

data

the normalized data

cats

the catagories, used to label the plot

lab

the labeling information

Examples

1
2
3
4
5
6
heightFile<-"~/Dropbox/UTX-Alex/jan/combined_heights.bed"
catFile<-"~/Dropbox/UTX-Alex/jan/catagories"
cats<-as.character(unlist(read.table(catFile)))
score<-loadHeightFile(heightFile)$data
normData_eigen<-pca(score)
plotPCs(normData_eigen[[2]],c(1,3),normData_eigen[[1]],cats)

alexjgriffith/CCCA documentation built on May 10, 2019, 8:52 a.m.