plot.plusminus {mvdalab} | R Documentation |
2D Graph of the PCA scores associated with a plusminusFit
Description
Generates a 2-dimensional graph of the scores for both plusminus
objects.
Usage
## S3 method for class 'plusminus'
plot(x, ncomp = 2, comps = c(1, 2), ...)
Arguments
x |
an object of class |
ncomp |
the number of components to include in the model (see below). |
comps |
a vector or length 2 corresponding to the number of components to include. |
... |
additional arguments. Currently ignored. |
Details
plot.plusminus
is used to extract a 2D graphical summary of the PCA scores associated with a plusminus
object.
Author(s)
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
Examples
### PLUS-Minus CLASSIFIER WITH validation = 'none', i.e. no CV ###
data(plusMinusDat)
mod1 <- plusminusFit(Y ~., data = plusMinusDat, validation = "none", n_cores = 2)
plot(mod1, ncomp = 2, comps = c(1, 2))
### Plus-Minus CLASSIFIER WITH validation = 'loo', i.e. leave-one-out CV ###
## Not run:
data(plusMinusDat)
mod2 <- plusminusFit(Y ~., data = plusMinusDat, validation = "loo", n_cores = 2)
plot(mod2, ncomp = 2, comps = c(1, 2))
## End(Not run)
[Package mvdalab version 1.7 Index]