Description Usage Arguments Value Examples
areal_edge_detection
...
1 2 3 4 |
shp |
|
vars |
Vector of variable names. |
scale_smoothing |
Scale parameter for gaussian smoothing to pre-process data.
|
scale_sobel |
Scale parameter for the edge detection algorithm. The parameter corresponds to the standard deviation of the first derivative of the multivariate normal distribution (the edge detection filter). Note that the scale depends on the projection of the shapefile. 0 (the default) automatically adapts to cover the adjacent areas. |
domain |
Domain for edge detection algorithms: |
natural_boundaries |
natural_boundaries |
N |
Adjacency matrix as neighbours list based on |
C |
SpatialPoints object with coordinates of cendroids (optional, saves time for multiple calls). |
method |
Centroid or numerical integration. |
smoothing |
Smoothing method. 'gaussian' and 'bilateral' are supported. 'bilateral' requires two scale parameter. |
combine |
Function to combine edges based on different variables.
|
res |
Resolution for the numerical integration. The number of integration
points is |
.progress |
Show process bar. |
Numerical vector or array with edge intensity variable.
1 2 3 | areal_edge_detection(...)
areal_edge_detection(..., combine = function(x) max(x, na.rm = TRUE))
areal_edge_detection(..., combine = function(x) prod(tail(sort(x), 2)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.