metrics_pull: Transform raster stack values to intensity values
Description
This function transforms raster stack values that describe
individual distributions or species distributions into standardized
intensity values. All the distributional information in the original raster
stack is preserved for visualization.
Usage
metrics_pull(x)
Arguments
x
RasterStack of distributions. Layers typically contain information
about the distribution of a single individual or species at multiple points
in time. Alternatively, layers may contain information about the
distributions of multiple individuals or species within a single time
period. Other conceptualizations are possible.
Value
A RasterStack containing intensity values. Intensity values are
calculated by dividing cell values in every layer by the maximum cell value
in the entire stack, thus ensuring intensities are comparable across
layers.
The maximum cell value in the stack is stored as the "maximum" attribute.
# NOT RUN {# load elephant datadata("elephant_ud")
r <- metrics_pull(elephant_ud)
print(r)
# maximum value for the stack stored as an attributeattr(r, "maximum")
# }