The function performs a principal components analysis on the given data matrix and displays a biplot using vqv.ggbiplot package of the results for each different source to help the user in the decision.
PCA_plot(data, components = c(1, 2), colors = NULL)Data frame containing source and mixtures data
Numeric vector containing the index of the two principal components in the chart
Vector of colors to use for the groups in the plot