Creates a line feature and gets the value of their zone of influence on locations over the feature
Source:R/bag_predict.R
create_linear_feature_zoi.Rd
The function create_linear_feature_zoi()
computes the cumulative zone of influence (ZOI) of one single
linear feature so it is used to correctly create predictions and response plots for
linear infrastructure, considering the potential responses at multiple radii.
Arguments
- radii
[numeric,vector=c(100, 250, 500, 1000, 2500, 5000, 10000)]
Vector of radii for which the zone of influence should be computed.- type
[character="circle"]{"circle", "Gauss", "rectangle", "exp_decay", "bartlett", "threshold"}
Shape of the zone of influence (ZOI), Default iscircle"
. It can assume any of the possible values for the argumenttype
in the functiondist_decay()
.- radius_max
[numeric=max(radii)]
Maximum radius, used to set the size of the landscape/raster for ZOI computations.- res
[numeric(1)=100]
Resolution for the raster created. This might impact what are the values observed in the ZOI.- line_value
[numeric(1)=1]
Value set to the raster line created. Default is 1. It could be changed to different values if we want to represent e.g. the value in the linear feature as the roads traffic or another value for spatio-temporally dynamic variables.
Examples
# create feature
create_linear_feature_zoi(radii = c(100, 250, 500, 1000, 2500, 5000, 10000),
type = "exp_decay",
res = 100)
#> 100 250 500 1000 2500 5000 10000
#> 1.105250 1.861974 3.426254 6.690854 16.580199 33.088243 63.428301