plot.fpcad: Plotting scores of principal component analysis of density...

View source: R/plot.fpcad.R

plot.fpcadR Documentation

Plotting scores of principal component analysis of density functions

Description

Applies to an object of class "fpcad" (see details of the fpcad function). Plots the scores.

Usage

## S3 method for class 'fpcad'
plot(x, nscore = c(1, 2), main = "PCA of probability density functions",
    sub.title = NULL, color = NULL, fontsize.points = 1.5, ...)

Arguments

x

object of class "fpcad" (returned by fpcad).

nscore

a length 2 numeric vector. The numbers of the score vectors to be plotted.

Warning: Its components cannot be greater than the nb.factors argument in the call of the fpcad function.

main

this argument to title has an useful default here.

sub.title

string. Subtitle to be added to each graph.

color

When provided, the colour of the symbols of each group. Can be a vector with length equal to the number of groups.

fontsize.points

Numeric. Expansion of the characters (or symbols) of the groups on the graph. This works as a multiple of par("cex") (see points).

...

optional arguments to plot methods.

Details

Plots the principal scores returned by the fpcad function. A new graphics window is opened for each pair of principal axes defined by the nscore argument.

Author(s)

Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard

References

Boumaza, R., Yousfi, S., Demotes-Mainard, S. (2015). Interpreting the principal component analysis of multivariate density functions. Communications in Statistics - Theory and Methods, 44 (16), 3321-3339.

See Also

fpcad; print.fpcad; interpret.fpcad.

Examples

data(roses)
rosefold <- as.folder(roses[,c("Sha","Den","Sym","rose")])
result <- fpcad(rosefold)
plot(result)

dad documentation built on Aug. 30, 2023, 5:06 p.m.