Relative patch richness (Diversity metric)
lsm_l_rpr(landscape, classes_max, verbose)# S3 method for RasterLayer
lsm_l_rpr(landscape, classes_max = NULL, verbose = TRUE)
# S3 method for RasterStack
lsm_l_rpr(landscape, classes_max = NULL, verbose = TRUE)
# S3 method for RasterBrick
lsm_l_rpr(landscape, classes_max = NULL, verbose = TRUE)
# S3 method for stars
lsm_l_rpr(landscape, classes_max = NULL, verbose = TRUE)
# S3 method for list
lsm_l_rpr(landscape, classes_max = NULL, verbose = TRUE)
Raster* Layer, Stack, Brick or a list of rasterLayers.
Potential maximum number of present classes
Print warning message if not sufficient patches are present
tibble
$$RPR = \frac{m} {m_{max}} * 100$$ where \(m\) is the number of classes and \(m_{max}\) is the (theoretical) maximum number of classes.
RPR is an 'Diversity metric'. The metric calculates the percentage of present classes
in the landscape in relation to a (theoretical) number of maximum classes. The user has to
specify the maximum number of classes. Note, that if classes_max
is not provided,
the functions returns NA
.
McGarigal, K., SA Cushman, and E Ene. 2012. FRAGSTATS v4: Spatial Pattern Analysis Program for Categorical and Continuous Maps. Computer software program produced by the authors at the University of Massachusetts, Amherst. Available at the following web site: http://www.umass.edu/landeco/research/fragstats/fragstats.html
Romme, W. H. 1982. Fire and landscapediversity in subalpine forests of Yellowstone National Park.Ecol.Monogr. 52:199-221
# NOT RUN {
lsm_l_rpr(landscape, classes_max = 5)
# }
Run the code above in your browser using DataCamp Workspace