Skip to content

Instantly share code, notes, and snippets.

@omartinez182
Created June 19, 2020 18:15
Show Gist options
  • Save omartinez182/a0958557bbbba006cd7b05402585f336 to your computer and use it in GitHub Desktop.
Save omartinez182/a0958557bbbba006cd7b05402585f336 to your computer and use it in GitHub Desktop.
Understanding Time Series Analysis with R - Snippet 11
dfOut <- MultForecast(4, data, 2)
dfOut %>%
ggplot(aes(x=t, y=sales))+
geom_line(col = 'light blue')+
geom_point()+
geom_line(aes(x=t, y=predictions), col = 'orange')+
geom_point(aes(x=t, y=predictions), col = 'orange')+
xlab('Time')+
ylab('Sales')+
theme_minimal()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment