latitudinalMean: latitudinalMean

View source: R/latitudinalMean.R

latitudinalMeanR Documentation

latitudinalMean

Description

A function to calculate mean values of a raster at every line of latitude, at the resolution of a given raster layer. Put another way, for each row in the raster, it calculates a mean.

Usage

latitudinalMean(rasterForCalculation)

Arguments

rasterForCalculation

A raster that contains data for plotting according to latitudinal value

Value

A vector of raster values for each absolute value of latitude.

References

Owens, H.L., Guralnick, R., 2019. climateStability: An R package to estimate climate stability from time-slice climatologies. Biodiversity Informatics 14, 8–13. https://doi.org/10.17161/bi.v14i0.9786

See Also

absLatitudinalMean to calculate mean value for each absolute value of latitude.

Examples


precipDeviation <- terra::rast(system.file("extdata/precipDeviation.asc",
                                            package = "climateStability"))
precipStability <- 1/precipDeviation
latMean <- latitudinalMean(rasterForCalculation = precipStability)
plot(latMean, main = "Precipitation Stability by Latitude",
ylab = "Relative Stability", type = "l")


climateStability documentation built on Oct. 1, 2022, 9:05 a.m.