feasts icon indicating copy to clipboard operation
feasts copied to clipboard

gg_season displays range for year time plot

Open linusjf opened this issue 1 year ago • 0 comments

#!/usr/bin/env Rscript
suppressMessages(library(dplyr))
suppressMessages(library(tsibble))
suppressMessages(library(tsibbledata))
suppressMessages(library(ggplot2))
suppressMessages(library(feasts))
vic_elec |> gg_season(Demand, period = "year") +
  labs(y="MWh", title="Electricity demand: Victoria")

The above code produces the following graph: img

Year legend labels are displayed as a range and include "hh:mm:ss". How do I display only the 4 digit year instead?

feasts version: 0.3.1

linusjf avatar Jul 04 '23 23:07 linusjf