plotReg: Plot regression coefficients for EEM data

Description Usage Arguments Value Examples

Description

Plot regression coefficients for EEM data

Usage

1
plotReg(x, ncomp = NULL, ...)

Arguments

x

output variable from plsr function

ncomp

number of components

...

(optional) arguments for drawEEM and filled.contour

Value

A figure is returned on the graphic device

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(gluten)
gluten_uf <- unfold(gluten) # unfold list into matrix

# delete columns with NA values
index <- colSums(is.na(gluten_uf)) == 0
gluten_uf <- gluten_uf[, index]
gluten_ratio <- as.numeric(names(gluten))

require(pls)
model <- plsr(gluten_ratio ~ gluten_uf, ncomp = 3) 
plotReg(model) 
 

Example output

Loading required package: pls

Attaching package:plsThe following object is masked frompackage:stats:

    loadings

EEM documentation built on May 2, 2019, 5:58 a.m.

Related to plotReg in EEM...