plot.cda | R Documentation |
Plot the learning set (and test set) on the canonical axes obtained by Canonical Discriminant Analysis (function CDA
).
## S3 method for class 'cda'
plot(x, newdata = NULL, axes = 1:2, ...)
x |
The classification model (object of class |
newdata |
The test set ( |
axes |
The canonical axes to be printed (numeric |
... |
Other parameters. |
CDA
, predict.cda
, cda-class
require (datasets)
data (iris)
model = CDA (iris [, -5], iris [, 5])
plot (model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.