Learn R Programming

rrcov (version 1.3-8)

scorePlot-methods: Score plot for Principal Components (objects of class 'Pca')

Description

Produces a score plot from an object (derived from) Pca-class.

Usage

## S3 method for class 'Pca':
scorePlot(x, i=1, j=2, \dots)

Arguments

x
an object of class (derived from) "Pca".
i
First score coordinate, defaults to i=1.
j
Second score coordinate, defaults to j=2.
...
optional arguments to be passed to the internal graphical functions.

Side Effects

a plot is produced on the current graphics device.

See Also

Pca-class, PcaClassic, PcaRobust-class.

Examples

Run this code
require(graphics)

## PCA of the Hawkins Bradu Kass's Artificial Data
##  using all 4 variables
data(hbk)
pca <- PcaHubert(hbk)
pca

scorePlot(pca)

Run the code above in your browser using DataLab