Skip to content

Instantly share code, notes, and snippets.

@omartinez182
Created June 19, 2020 18:09
Show Gist options
  • Save omartinez182/6ee35022ab49985baa2352594ca073f7 to your computer and use it in GitHub Desktop.
Save omartinez182/6ee35022ab49985baa2352594ca073f7 to your computer and use it in GitHub Desktop.
Understanding Time Series Analysis with R - Snippet 5
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