added pca and lm plotting code.