plot.preCKrigePolygons: Plotting polygon configurations and their approximated areas

Description Usage Arguments Author(s) See Also Examples

View source: R/plot.preCKrigePolygons.R

Description

Plotting method for objects of the class preCKrige.polygons. The plot show the block neighbourhood configuration for one polygon (block) of a preCKrige.polygons object as well as its area approximation by the pixels.

Usage

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

Arguments

x

object of the class preCKrigePolygons. In general the output object of a preCKrige function call.

index

numeric value, list index of the desired polygon (block) of the polygon list x@polygons

...

further plotting parameters

Author(s)

Christoph Hofer christoph.hofer@alumni.ethz.ch

See Also

preCKrige

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
## Not run: 
### load data
data(meuse,meuse.blocks)

### plot blocks
plot(meuse.blocks)

### compute the approximated block variance of each block in
### meuse.blocks without the definition of neighbours blocks (default)
preCK_1  <- preCKrige(newdata = meuse.blocks,
    model = covmodel("exponential", 0.05, 0.15, scale = 192.5),
    pwidth = 75, pheight = 75)

### plot block approximation of block 59
plot(preCK_1, 59)


### define neighbours
if(require(spdep))
{
neighbours <- poly2nb(meuse.blocks)
class(neighbours)
### neighbours should be an object of the class "list"
class(neighbours) <- "list"
### compute the approximated block variance-covariance matrices of each block in
### meuse.blocks without the defined block neighbours
preCK_2 <- preCKrige(newdata = meuse.blocks, neighbours = neighbours,
    model = covmodel("exponential", 0.05, 0.15, scale = 192.5),
    pwidth = 75, pheight = 75)

### plot block approximation of block 59 and its
### block neighbours
plot(preCK_1, 59)
}
if(!require(spdep))
{
cat("Please, install the package spdep to excute this example.\n")
}


## End(Not run)

constrainedKriging documentation built on May 2, 2019, 4:51 a.m.