plot-method: Plot an optimized spatial sample configuration

plot.OptimizedSampleConfigurationR Documentation

Plot an optimized spatial sample configuration

Description

Plot the evolution of the objective function value and the optimized spatial sample configuration

Usage

## S3 method for class 'OptimizedSampleConfiguration'
plot(x, which = 1:2, boundary, ...)

Arguments

x

Object of class OptimizedSampleConfiguration returned by one of the optim-functions.

which

Which plot should be produced: evolution of the objective function value (1), optimized spatial sample configuration (2), or both (1:2)? Defaults to which = 1:2.

boundary

(Optional) An object of class SpatialPolygons (see sp::SpatialPolygons()) with the outer and inner limits of the spatial sampling domain (see candi).

...

Other options passed to plot.

Examples

require(sp)
data(meuse.grid)
candi <- meuse.grid[, 1:2]
covars <- meuse.grid[, 5]
schedule <- scheduleSPSANN(initial.temperature = 5, chains = 1,
                           x.max = 1540, y.max = 2060, x.min = 0,
                           y.min = 0, cellsize = 40)
set.seed(2001)
res <- optimCORR(points = 10, candi = candi, covars = covars,
                 use.coords = TRUE, schedule = schedule)
plot(res)

Laboratorio-de-Pedometria/spsann-package documentation built on Nov. 2, 2023, 3:14 p.m.