get_generations_rst | R Documentation |
Find out how many generations are present (or have reached a development threshold).
get_generations_rst(
pheno,
dates = prop_last_date(pheno),
threshold = 0,
generations = prop_hatched_generations(pheno),
categorical = TRUE,
colors = barrks_colors("raster"),
labels = barrks_labels("raster")
)
get_generations_df(
pheno,
stations = prop_stations(pheno),
dates = prop_dates(pheno),
threshold = 0,
generations = prop_hatched_generations(pheno)
)
get_hibernating_generations_rst(
pheno,
categorical = TRUE,
colors = barrks_colors("raster"),
labels = barrks_labels("raster")
)
get_hibernating_generations_df(pheno, stations = prop_stations(pheno))
pheno |
A phenology (see |
dates |
Select dates that should be present in the output. |
threshold |
Threshold of the beetle development to account for a generation. |
generations |
Numeric vector that determines which generations should be included in the result. |
categorical |
Set |
colors , labels |
Vectors of colors/labels starting from zero generations followed consecutively by elements for the respective generations (including sister broods). |
stations |
Pass a character vector to choose stations assigned to |
get_generations_rst()
: A multi-layer SpatRaster.
get_hibernating_generations_rst()
: A SpatRaster. Only available if a
mortality event has occured since the diapause started or the model's end
date has been reached. Otherwise, the values will be NA
.
get_generations_df()
: A data frame.
get_hibernating_generations_df()
: A data frame. Only available if a
mortality event has occured since the diapause started or the model's end
date has been reached. Otherwise, the values will be NA
.
# calculate phenology
p <- phenology('phenips-clim', barrks_data(), .quiet = TRUE)
# get the generations raster
gens <- get_generations_rst(p)
# plot the generations raster
terra::plot(gens)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.