This functions plots the percentage variability explained the first one hundred (or pcaComp) pricipal components of the PCA performed in the function pruneKnn if the parameter large was TRUE. The selected number of principal components (if pcaComp was NULL) is determined by an elbow criterion and highlighted by a blue circle.
plotPC(res, logDiff = FALSE)List object with k nearest neighbour information returned by pruneKnn function.
logical. If TRUE, then plot log2 of the difference in variability explained by PC i and PC i+1.