plot.orthoProjection {resemble}R Documentation

Plot method for an object of class orthoProjection

Description

Plots the content pf an object of class orthoProjection

Usage

## S3 method for class 'orthoProjection'
plot(x, ...)

Arguments

x

an object of class orthoProjection (as returned by orthoProjection).

...

arguments to be passed to methods.

Author(s)

Leonardo Ramirez-Lopez and Antoine Stevens

See Also

orthoProjection

Examples

## Not run: 
require(prospectr)

data(NIRsoil)

Xu <- NIRsoil$spc[!as.logical(NIRsoil$train),]
Yu <- NIRsoil$CEC[!as.logical(NIRsoil$train)]
Yr <- NIRsoil$CEC[as.logical(NIRsoil$train)]
Xr <- NIRsoil$spc[as.logical(NIRsoil$train),]

Xu <- Xu[!is.na(Yu),]
Yu <- Yu[!is.na(Yu)]

Xr <- Xr[!is.na(Yr),]
Yr <- Yr[!is.na(Yr)] 

# A partial least squares projection using the "opc" method
# for the selection of the optimal number of components
plsProj <- orthoProjection(Xr = Xr, Yr = Yr, X2 = Xu, 
                           method = "pls", 
                           pcSelection = list("opc", 40))

plot(plsProj)

## End(Not run)

[Package resemble version 1.2.2 Index]