validate_lcp

0th

Percentile

validate_lcp

Calculates accuracy of Least Cost Path

Usage
validate_lcp(lcp, comparison, buffers = c(50, 100, 250, 500, 1000))
Arguments
lcp

Least Cost Path to assess the accuracy of. Expects object of class SpatialLines/SpatialLinesDataFrame

comparison

SpatialLines or SpatialLinesDataFrame to validate the Least Cost Path against.

buffers

numeric vector of buffer distances to assess. Default values are c(50, 100, 250, 500, 1000).

Details

Calculates the accuracy of the Least Cost Path using the buffer method proposed by Goodchild and Hunter (1997).

Value

data.frame object

data.frame (base package). The resultant object identifies the percentage of the lcp within x distance (as supplied in the buffers argument) from the provided comparison object.

Aliases
  • validate_lcp
Examples
# NOT RUN {
x1 <- c(1,5,4,8)
y1 <- c(1,3,4,7)
line1 <- sp::SpatialLines(list(sp::Lines(sp::Line(cbind(x1,y1)), ID='a')))
x2 <- c(1,5,5,8)
y2 <- c(1,4,6,7)
line2 <- sp::SpatialLines(list(sp::Lines(sp::Line(cbind(x2,y2)), ID='b')))

val_lcp <- validate_lcp(lcp = line1, comparison = line2, buffers = c(0.1, 0.2, 0.5, 1))
# }
Documentation reproduced from package leastcostpath, version 1.2.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.