score_plot: Principal Components Analysis Scores Plot

View source: R/plotUtils.R

score_plotR Documentation

Principal Components Analysis Scores Plot

Description

"score_plot" plots the projection of the individuals onto the first two principal components.

Usage

score_plot(x, i = 1, j = 2, pop, col, plt.pkg = "ggplot")

Arguments

x

an output from pcadapt containing the scores.

i

an integer indicating onto which principal component the individuals are projected when the "scores" option is chosen. Default value is set to 1.

j

an integer indicating onto which principal component the individuals are projected when the "scores" option is chosen. Default value is set to 2.

pop

a list of integers or strings specifying which subpopulation the individuals belong to.

plt.pkg

a character string specifying the package to be used to display the graphical outputs. Use "plotly" for interactive plots, or "ggplot" for static plots.


bcm-uga/pcadapt documentation built on April 17, 2024, 8:30 a.m.