View source: R/plot.plusminus.R
plot.plusminus | R Documentation |
Generates a 2-dimensional graph of the scores for both plusminus
objects.
## S3 method for class 'plusminus' plot(x, ncomp = 2, comps = c(1, 2), ...)
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. |
plot.plusminus
is used to extract a 2D graphical summary of the PCA scores associated with a plusminus
object.
Nelson Lee Afanador (nelson.afanador@mvdalab.com)
### 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.