Learn R Programming

pcadapt (version 2.2)

scoresPlot: Principal Components Analysis Scores Plot

Description

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

Usage

scoresPlot(x, i, j, pop, subcol = NULL)

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.
subcol
a list of colors for each subpopulation. If not specified, default colors will be used.
subpop
a list of lists of indices specifying the subpopulations. This attributes specific colors to each subpopulations.

Examples

Run this code
## see ?pcadapt for examples

Run the code above in your browser using DataLab