score_plot: Principal Components Analysis Scores Plot

Description Usage Arguments Examples

View source: R/score-plot.R

Description

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

Usage

1
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.

Examples

1
## see ?pcadapt for examples

bcm-uga/pcadapt documentation built on June 14, 2018, 5:50 a.m.