plot.pcalda | R Documentation |
Plot linear discriminants of pcalda
.
## S3 method for class 'pcalda'
plot(x, dimen, ...)
x |
An object of class |
dimen |
The index of linear discriminants to be used for the plot. |
... |
Further arguments. See corresponding entry in
|
This function is a method for the generic function plot()
for
class pcalda
. If the length of dimen
is greater
than 2, a pairs plot is used. If the length of dimen
is equal
to 2, a scatter plot is drawn. Otherwise, the dot plot is drawn for
the single component.
An object of class "trellis"
.
Wanchang Lin
pcalda
, predict.pcalda
,
lda_plot_wrap
,panel.elli.1
.
data(abr1)
cl <- factor(abr1$fact$class)
dat <- abr1$pos
model <- pcalda(dat,cl)
## Second component versus first
plot(model,dimen=c(1,2),main = "Training data",ep=2)
## Pairwise scatterplots of several components
plot(model,main = "Training data",ep=1)
## The first component
plot(model,dimen=c(1),main = "Training data")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.