tidyverts / feasts

Feature Extraction And Statistics for Time Series
https://feasts.tidyverts.org/
291 stars 23 forks source link

gg_season displays range for year time plot #159

Open linusjf opened 1 year ago

linusjf commented 1 year ago
#!/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