Plotting function for Selectivity Ratio.

Share:

Description

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

Usage

1
2
## S3 method for class 'sr'
plot(x, variables = "all", ...)

Arguments

x

sr object

variables

the number of variables to include the graph output.

...

additional arguments. Currently ignored.

Details

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

Value

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

Author(s)

Nelson Lee Afanador (nelson.afanador@mvdalab.com)

Examples

1
2
3
4
5
6
7
data(Penta)
## Number of bootstraps set to 500 to demonstrate flexibility
## Use a minimum of 1000 (default) for results that support bootstraping
mod1 <- plsFit(log.RAI ~., scale = TRUE, data = Penta[, -1], 
               ncomp = 2, validation = "oob", boots = 500)
sr(mod1)
plot(sr(mod1))

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