plotscores: Plot Principal Component Scores

View source: R/plotscores.R

plotscoresR Documentation

Plot Principal Component Scores

Description

The coefficients multiplying the harmonics or principal component functions are plotted as points.

Usage

plotscores(pcafd, scores=c(1, 2), xlab=NULL, ylab=NULL,
           loc=1, matplt2=FALSE, ...)

Arguments

pcafd

an object of the "pca.fd" class that is output by function pca.fd.

scores

the indices of the harmonics for which coefficients are plotted.

xlab

a label for the horizontal axis.

ylab

a label for the vertical axis.

loc

an integer: if loc >0, you can then click on the plot in loc places and you'll get plots of the functions with these values of the principal component coefficients.

matplt2

a logical value: if TRUE, the curves are plotted on the same plot; otherwise, they are plotted separately.

...

additional plotting arguments used in function plot.

Side Effects

a plot of scores

References

Ramsay, James O., Hooker, Giles, and Graves, Spencer (2009), Functional data analysis with R and Matlab, Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2005), Functional Data Analysis, 2nd ed., Springer, New York.

Ramsay, James O., and Silverman, Bernard W. (2002), Applied Functional Data Analysis, Springer, New York.

See Also

pca.fd


fda documentation built on May 29, 2024, 11:26 a.m.