Created
June 19, 2020 18:09
-
-
Save omartinez182/6ee35022ab49985baa2352594ca073f7 to your computer and use it in GitHub Desktop.
Understanding Time Series Analysis with R - Snippet 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dfOut <- data.frame(df, MM=MM) | |
dfOut %>% | |
ggplot(aes(x=t, y=sales))+ | |
geom_line(col = 'light blue')+ | |
geom_point()+ | |
geom_line(aes(x=t, y=MM), col = 'orange')+ | |
geom_point(aes(x=t, y=MM), 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