plot.fda | R Documentation |
Plot in discriminant (canonical) coordinates a fda
or (by inheritance) a mda
object.
## S3 method for class 'fda'
plot(x, data, coords, group, colors, pch, mcolors, mpch, pcex, mcex, ...)
x |
an object of class |
data |
the data to plot in the discriminant coordinates. If
|
coords |
vector of coordinates to plot, with default
|
group |
if |
colors |
a vector of colors to be used in the plotting. |
pch |
a vector of plotting characters. |
mcolors |
a vector of colors for the class centroids; default is |
mpch |
a vector of plotting characters for the centroids. |
pcex |
character expansion factor for the points; defualt is |
mcex |
character expansion factor for the centroids; defualt is |
... |
further arguments to be passed to or from methods. |
fda
,
mda
,
predict.fda
data(iris)
irisfit <- fda(Species ~ ., data = iris)
plot(irisfit)
data(ESL.mixture)
## Not a data frame
mixture.train=ESL.mixture[c("x","y")]
mixfit=mda(y~x, data=mixture.train)
plot(mixfit, mixture.train)
plot(mixfit, data=ESL.mixture$xnew, group="pred")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.