Plotting Function for Score Contributions.

Share:

Description

This function generates a plot an object of class score.contribution

Usage

1
2
## S3 method for class 'cp'
plot(x, ncomp = "Overall", ...)

Arguments

x

score.contribution object

ncomp

the number of components to include the graph output.

...

additional arguments. Currently ignored.

Details

A graph of the score contributions for ScoreContrib objects.

Value

The output of plot is a graph of score contributions for the specified observation(s).

Author(s)

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

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
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)
Score.Contributions1 <- ScoreContrib(mod1, obs1 = 1, obs2 = 3)
plot(Score.Contributions1, ncomp = 1)

#PCA Model
pc1 <- pcaFit(Penta[, -1])
Score.Contributions1 <- ScoreContrib(mod1, obs1 = 1, obs2 = 3)
plot(Score.Contributions1, ncomp = 1)

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