'Find spatial discontinuities in r
I would like to draw previously unknown borders based on spatial discontinuities, i.e. a significant change in the value of a variable of interest between adjacent points.
I have tried sm.discontinuity with geographic coordinates, but found the border to be changing a lot.
Points are generated with code below.
set.seed(2)
scatter = data.frame(
x = rnorm(100, mean = 1.5, sd = .6),
y = rnorm(100, mean = 5, sd = 2),
value = rnorm(100, mean = 5, sd = 2)
)
Any help would be much appreciated!
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
