This function plots the distribution of the daily ensemble, against the hres and previously calculated thresholds

firegram(thresholds, hres, ens, max_index = 100)

Arguments

thresholds

is a numeric vector containing the index thresholds corresponding to: very low, low, moderate, high, very high, extreme danger

hres

is the RasterBrick containing the high resolution forecasts

ens

is the RasterBrick containing the ensemble forecasts

max_index

is the upper limit of the y-axis

Examples

if (FALSE) {
  p <- firegram(thresholds, hres, ens)
  # Use custom color palette
  p + colorspace::scale_fill_discrete_diverging(palette = "Blue-Red 2")
}