plot.minLambda: Plot of objective function for finding appropriate smoothing...

Description Usage Arguments Details Value Examples

View source: R/plot.minLambda.R

Description

The objective function G is plotted on a grid. The minimum is indicated with a white point.

Usage

1
2
## S3 method for class 'minLambda'
plot(x, ...)

Arguments

x

Output of function MinLambda.

...

Further graphical parameters can be passed.

Details

When minimizing over 2 λ's, one plot is generated: (λ_2 vs λ_3). With 3 λ's, 3 plots are generated: λ_2 vs. λ_3, λ_2 vs. λ_4 and λ_3 vs. λ_4.

Value

Plot of G on a grid.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(987)
sampleData <- matrix(stats::rnorm(100), nrow = 10)
sampleData[4:6, 6:8] <- sampleData[4:6, 6:8] + 5

# Minimization of two lambdas on a 20-by-20-grid
minLamOut <- MinLambda(Xmu = c(sampleData), mm = 10, nn = 10, 
                        nGrid = 20, nLambda = 3)

# Plot of the objective function
plot(x = minLamOut)

mrbsizeR documentation built on April 1, 2020, 5:08 p.m.