plotReg {EEM} | R Documentation |
Plot regression coefficients for EEM data
Description
Plot regression coefficients for EEM data
Usage
plotReg(x, ncomp = NULL, ...)
Arguments
x |
output variable from |
ncomp |
number of components |
... |
(optional) arguments for |
Value
A figure is returned on the graphic device
Examples
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)
[Package EEM version 1.1.1 Index]