skriging: Function for Segment-based Kriging models

Description Usage Arguments Examples

View source: R/skriging.R

Description

Segment-based Kriging models, including Segment-based Ordinary Kriging (SOK) and Segment-based Regression Kriging (SRK), for spatial prediction of line segment spatial data (polyline). The methods are described in Yongze Song (2018) <doi:10.1109/TITS.2018.2805817>.

Usage

1
2
3
4
5
6
skriging(formula, polyline = polyline, method = "srk",
          lwd = "width", obspred = "obs1pred0", boxcox = TRUE)
## S3 method for class 'skriging'
print(x, ...)
## S3 method for class 'skriging'
plot(x, studyarea = NULL, ...)

Arguments

formula

A skriging formula.

polyline

A shapefile of spatial polyline.

method

A characteor of segment-based Kriging model. The default is "srk", segment-based regression Kriging Another method is "sok", segment-based ordinary Kriging.

lwd

A fixed number or a variable name of polyline of the line width.

obspred

A variable name of polyline to define the observation and prediction lines. Observation is 1 and prediction is 0.

boxcox

A logical parameter to set whether the dependent variable should be transformed with boxcox function. The default is TRUE.

x

A list of skriging result.

studyarea

A shapefile of spatial polygon of study area.

...

new print and plot

Examples

1
2
3
4
5
6
## SRK: segment-based regression Kriging
## dataset 'vtest' is a sample of dataset 'vehicles'
srk1 <- skriging(heavy ~ wpai + width, polyline = vtest, method = "srk",
                 lwd = "width", obspred = "obs1pred0", boxcox = TRUE)
srk1
plot(srk1)

SK documentation built on May 2, 2019, 2:53 p.m.