plot-method: Plot an optimized sample configuration

Description Usage Arguments Examples

Description

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

Usage

1
2
3
## 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 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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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)

Example output

---------------------------------------------------------------
Optimization of Sample Configurations using Spatial Simulated
Annealing 
spsann version 2.2.0 
(built on 2019-04-28) is now loaded                
---------------------------------------------------------------

Loading required package: sp

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |========                                                              |  11%
  |                                                                            
  |================                                                      |  22%
  |                                                                            
  |=======================                                               |  33%
  |                                                                            
  |===============================                                       |  44%
  |                                                                            
  |=======================================                               |  56%
  |                                                                            
  |===============================================                       |  67%
  |                                                                            
  |======================================================                |  78%
  |                                                                            
  |==============================================================        |  89%
  |                                                                            
  |======================================================================| 100%
100% of acceptance in the 1st chain

running time = 0.02 seconds

spsann documentation built on May 2, 2019, 1:36 p.m.