Learn R Programming

mvdalab (version 1.7)

plot.R2s: Plot of R2

Description

Plots for the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y).

Usage

# S3 method for R2s
plot(x, ...)

Value

The output of plot.R2s is a graph of the stated explained variance summary.

Arguments

x

An R2s object

...

additional arguments. Currently ignored.

Author

Thanh Tran (thanh.tran@mvdalab.com)

Details

plot.R2s is used to generates the graph of the cross-validated R2 (CVR2), explained variance in the predictor variables (R2X), and the reponse (R2Y) for PLS models.

Examples

Run this code
data(Penta)
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1],
               ncomp = 2, validation = "loo")
plot(R2s(mod1))

Run the code above in your browser using DataLab