Description Usage Arguments Details Author(s) See Also Examples
Plots a set of data on one, two or more linear discriminants.
1 2 3 |
x |
An object of class |
panel |
The panel function used to plot the data. |
cex |
Graphics parameter |
dimen |
The index of linear discriminants to be used for the plot. |
abbrev |
Whether the group labels are abbreviated on the plots. If |
... |
Additional arguments to |
This function is a method for the generic function
plot()
for class nlda
. The behaviour is determined by the value
of dimen
. For the length of dimen
is greater than 2, a
pairs
plot is used. For the length of dimen
is equal to 2, a
scatter plot is drawn. Otherwise, a set of histograms or density plots are drawn.
Wanchang Lin wll@aber.ac.uk and David Enot dle@aber.ac.uk.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## load abr1
data(abr1)
cl <- factor(abr1$fact$class)
dat <- preproc(abr1$pos , y=cl, method=c("log10","TICnorm"),add=1)[,110:500]
## build model on all the data available
model <- nlda(dat,cl)
## Plot second component versus first
plot(model,dimen=c(1,2),main = "Training data",abbrev = TRUE)
## Pairwise scatterplots of several components
plot(model,main = "Training data",abbrev = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.