Learn R Programming

mvdalab (version 1.4)

plot.sr: Plotting function for Selectivity Ratio.

Description

This function provides the ability to plot an object of class sr

Usage

# S3 method for sr
plot(x, variables = "all", ...)

Arguments

x

sr object

variables

the number of variables to include the graph output.

additional arguments. Currently ignored.

Value

The output of plot.sr is a graph of the selectivity ratio for the specified observation(s).

Details

plot.sr is used to generates the graph of the selectivity ratio from sr objects.

Examples

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

Run the code above in your browser using DataLab