Learn R Programming

spsann (version 2.2.0)

plot.OptimizedSampleConfiguration: Plot an optimized sample configuration

Description

Plot the evolution of the energy state and the optimized sample configuration

Usage

# S3 method for 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 energy state (1), optimized sample configuration (2), or both (1:2)? Defaults to which = 1:2.

boundary

Object of class Spatial defining the boundary of the sampling region.

...

Other options passed to plot.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab