plot.mpda: Plotting and summary of mpda object

View source: R/mpda.R

plot.mpdaR Documentation

Plotting and summary of mpda object

Description

Generic functions for plotting and printing the content of a mpda object.

Usage

## S3 method for class 'mpda'
plot(
  x,
  y = NULL,
  col = c("tan3", "slategray3"),
  pch = 15,
  legend.pos = "bottomright",
  xlab = "PLS dimension 1",
  ylab = "PLS dimension 2",
  ...
)

## S3 method for class 'mpda'
summary(object, ...)

Arguments

x

An mpda object, see below.

y

not used.

col

Colors, one for each class-label.

pch

Markers, one for each class-label.

legend.pos

Position of legend.

xlab

Text on x-axis.

ylab

Text on y-axis.

...

Optional graphical arguments.

object

An mpda object, see below.

Details

An mpda object contains a fitted mpda model.

The plot.mpda function produces a multi-panel plot of all the pairwise pda models, see plot.pda for details

The summary.mpda function will display a text giving the number of samples from each class, the number of PLS-dimensions used, and the priors used in the model fitting.

Author(s)

Lars Snipen.

See Also

mpda.

Examples

data(poems)
y <- poems[,1]
X <- as.matrix(poems[,-1])
mp.trn <- mpda(y,X,prior=c(1,1,1),max.dim=10)
plot(mp.trn)
summary(mp.trn)


larssnip/mpda documentation built on March 28, 2022, 3:37 p.m.