Shannons's evenness index (Diversity metric)
lsm_l_shei(landscape)# S3 method for RasterLayer
lsm_l_shei(landscape)
# S3 method for RasterStack
lsm_l_shei(landscape)
# S3 method for RasterBrick
lsm_l_shei(landscape)
# S3 method for stars
lsm_l_shei(landscape)
# S3 method for list
lsm_l_shei(landscape)
Raster* Layer, Stack, Brick or a list of rasterLayers.
tibble
$$SHEI = \frac{- \sum \limits_{i = 1} ^ {m} (P_{i} * \ln P_{i})} {\ln m}$$ where \(P_{i}\) is the proportion of class i and \(m\) is the number of classes.
SHEI is a 'Diversity metric'. It is the ratio between the actual Shannon's diversity index and and the theoretical maximum of the Shannon diversity index. It can be understood as a measure of dominance.
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
Shannon, C., and W. Weaver. 1949. The mathematical theory of communication. Univ. IllinoisPress, Urbana
# NOT RUN {
lsm_l_shei(landscape)
# }
Run the code above in your browser using DataCamp Workspace