2D Graph of the PCA scores associated with a plusminusFit

Share:

Description

Generates a 2-dimensional graph of the scores for both plusminus objects.

Usage

1
2
## S3 method for class 'plusminus'
plot(x, ncomp = 2, comps = c(1, 2), ...)

Arguments

x

an object of class plusminus, i.e. plusminusFit.

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

1
2
3
4
5
6
7
8
9
###  Plus-Minus CLASSIFIER WITH validation = 'loo', i.e. leave-one-out CV ###
data(plusMinusDat)
mod1 <- plusminusFit(Y ~., data = plusMinusDat, validation = "loo", n_cores = 2)
plot(mod1, ncomp = 2, comps = c(1, 2))

###  PLUS-Minus CLASSIFIER WITH validation = 'none', i.e. no CV ###

mod2 <- plusminusFit(Y ~., data = plusMinusDat, validation = "none", n_cores = 2)
plot(mod2, ncomp = 2, comps = c(1, 2))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.