Learn R Programming

dad (version 4.1.6)

plot.dstatis: Plotting scores of STATIS method (interstructure) analysis

Description

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

Usage

# S3 method for dstatis
plot(x, nscore = c(1, 2), sub.title = NULL, color = NULL, fontsize.points = 1.5, ...)

Arguments

x

object of class "dstatis" (returned by dstatis.inter).

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 dstatis.inter function.

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.

Author

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

Details

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

References

Lavit, C., Escoufier, Y., Sabatier, R., Traissac, P. (1994). The ACT (STATIS method). Computational Statistics & Data Analysis, 18 (1994), 97-119.

See Also

dstatis.inter; print.dstatis; interpret.dstatis.

Examples

Run this code
data(roses)
rosesf <- as.folder(roses[,c("Sha","Den","Sym","rose")])

# Dual STATIS on the covariance matrices
result <- dstatis.inter(rosesf, data.scaled = FALSE, group.name = "rose")
plot(result)

Run the code above in your browser using DataLab