Description Usage Arguments Value See Also Examples
Wrapper function to map proportion of grasses with C4 and C3 photosynthetic pathway - using climate layers and crossover temperature.
1 2 | map_grass_pathway(temp.stack, precip.stack, C4.threshold, GS.threshold,
precip.threshold, filename = "", ...)
|
temp.stack |
Raster* object. Each layer corresponds to a different temporal window (e.g., month) for a temperature climate variable. Object may be single or multi-layer. |
precip.stack |
Raster* object. Each layer corresponds to a different temporal window (e.g., month) for a precipitation climate variable. Object may be single or multi-layer. |
C4.threshold |
Numeric. Threshold value (lower-bound inclusive) for C4 climate temperature. |
GS.threshold |
Numeric. Threshold value (lower-bound inclusive) for Growing Season temperature. |
precip.threshold |
Numeric. Threshold value (lower-bound inclusive) for Growing Season precipitation. |
filename |
Character. Optional output root filename passed to
|
... |
Other arguments passed to |
RasterBrick. Layer[[1]] corresponds to percent of grasses with C4 photosynthetic pathway, Layer[[2]] corresponods to percent of grasses with C3 photosynthetic pathway.
mask_climate, calc_C4_ratio, calc_pft_cover.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | # Load data for example
data(temp_NA) # mean monthly temperature (deg. C)
data(prec_NA) # mean monthly precipitation (mm)
# Specify climate thresholds
C4_temp <- 22 # mean monthly temperature >= 22 deg. C
GS_temp <- 5 # mean monthly temperature >= 5 deg. C
GS_prec <- 25 # mean monthly precipitation >= 25 mm
# Predict percent of grasses by photosynthetic pathway.
grass_map <- map_grass_pathway(temp.stack = temp_NA,
precip.stack = prec_NA,
C4.threshold = C4_temp,
GS.threshold = GS_temp,
precip.threshold = GS_prec)
# Plot C4 and C3 grass layers.
plot(grass_map)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.