plot.OptimizedSampleConfiguration | R Documentation |
Plot the evolution of the objective function value and the optimized spatial sample configuration
## S3 method for class 'OptimizedSampleConfiguration'
plot(x, which = 1:2, boundary, ...)
x |
Object of class |
which |
Which plot should be produced: evolution of the objective
function value (1), optimized spatial sample configuration (2), or both
(1:2)? Defaults to |
boundary |
(Optional) An object of class SpatialPolygons (see sp::SpatialPolygons()) with
the outer and inner limits of the spatial sampling domain (see |
... |
Other options passed to |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.