tidyverts / feasts

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

question about gg_tsdisplay function #138

Closed rbelmontelopes closed 2 years ago

rbelmontelopes commented 3 years ago

Is there a way to make gg_tsdisplay() x axis of the first plot (time series) start on the date of the first sample? In my case the first sample starts on day 2, but the plot starts on day one (the period in the tsibble is 7D)

Additionally, there is a way to to make this time series plot show the dates for all samples instead of one date for each 15 days?

Thanks for your time,

Best Regards

Ricardo

mitchelloharawild commented 3 years ago

Do you have an example dataset to better describe what you would like to make? If you save the gg_tsdisplay output, you are able to modify each individual plot.

For example,

library(feasts)
#> Loading required package: fabletools
library(ggplot2)
p <- gg_tsdisplay(tsibbledata::aus_production, Beer)
p[[1]] <- p[[1]] + geom_point()
p

Created on 2021-06-01 by the reprex package (v2.0.0)