Legend position in plotScores (Chemospec package)
I am working on infrared spectral data using the “Chemospec” package. I performed a PCA and now want to visualize the results, the function “plotScores” plots the PCA scores. I am trying to move the position of the legend but it stays in the top right corner.The function “plotScores” uses ggplot2 to visualize the data so I tried different ggplot position assignments but nothing changes.
Vectors on “handmade” PCA don’t match the output biplot
I used the R package PCAtools to generate a PCA of gene count metagenomic data. When visualizing the biplot using PCAtools, the loadings are “appropriately” sized for the data dispersion (I understand vector length is representative of impact on dispersal). See below: ex
is a normalized gene count table subset. dput(ex)
is below.