Learn R Programming

pcadapt (version 3.0.4)

score.plotting: Principal Components Analysis Scores Plot

Description

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

Usage

score.plotting(x, i = 1, j = 2, pop)

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.

Examples

Run this code
## see ?pcadapt for examples

Run the code above in your browser using DataLab