Skip to contents

Draws which timeslices each milestone year is solved on: one row per milestone, the model calendar's timeslices along the axis in calendar order, a tile where the year has the timeslice and none where its calendar leaves it out. A milestone gets a calendar of its own with setCalendar()(years = ); see getYearCalendars().

Usage

gg_year_calendars(object, fill = c("weight", "none"), palette = "D")

Arguments

object

a model, scenario, config or settings.

fill

"weight" colours a tile by the timeslice's weight in that year's calendar, the number of timeslices of the full calendar it stands for; "none" draws every solved timeslice in one colour.

palette

viridis option for the weights.

Value

A ggplot object, or NULL when no milestone has a calendar of its own.

Examples

if (FALSE) { # \dontrun{
mod <- setCalendar(mod, calendars$d365_h24_1dpm, years = 2035)
gg_year_calendars(mod)
} # }