Spatialize landscape metric values
spatialize_lsm(
landscape,
level,
metric,
name,
type,
what,
directions,
progress,
...
)# S3 method for RasterLayer
spatialize_lsm(
landscape,
level = "patch",
metric = NULL,
name = NULL,
type = NULL,
what = NULL,
directions = 8,
progress = FALSE,
...
)
# S3 method for RasterStack
spatialize_lsm(
landscape,
level = "patch",
metric = NULL,
name = NULL,
type = NULL,
what = NULL,
directions = 8,
progress = FALSE,
...
)
# S3 method for RasterBrick
spatialize_lsm(
landscape,
level = "patch",
metric = NULL,
name = NULL,
type = NULL,
what = NULL,
directions = 8,
progress = FALSE,
...
)
# S3 method for stars
spatialize_lsm(
landscape,
level = "patch",
metric = NULL,
name = NULL,
type = NULL,
what = NULL,
directions = 8,
progress = FALSE,
...
)
# S3 method for list
spatialize_lsm(
landscape,
level = "patch",
metric = NULL,
name = NULL,
type = NULL,
what = NULL,
directions = 8,
progress = FALSE,
...
)
Raster* Layer, Stack, Brick or a list of rasterLayers.
Level of metrics. Either 'patch', 'class' or 'landscape' (or vector with combination).
Abbreviation of metrics (e.g. 'area').
Full name of metrics (e.g. 'core area')
Type according to FRAGSTATS grouping (e.g. 'aggregation metrics').
Selected level of metrics: either "patch", "class" or "landscape".
It is also possible to specify functions as a vector of strings, e.g. what = c("lsm_c_ca", "lsm_l_ta")
.
The number of directions in which patches should be connected: 4 (rook's case) or 8 (queen's case).
Print progress report.
Arguments passed on to calculate_lsm()
.
list
The functions returns a nested list with RasterLayer
s. The first level
contains each input layer (only one element if RasterLayer
was provided).
The second level contains a RasterLayer
for each selected metric
(see list_lsm
for details) where each cell has the landscape metric
value of the patch it belongs to. Only patch level metrics are allowed.
# NOT RUN {
spatialize_lsm(landscape, what = "lsm_p_area")
# }
Run the code above in your browser using DataLab