Created
April 17, 2017 00:03
-
-
Save jroberayalas/c464415c7a167849ecb1436c4b7c00cd to your computer and use it in GitHub Desktop.
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
# Final plot | |
p <- ggplot() | |
p <- p + geom_point(data = train, aes(x = ds, y = y), size = 0.5) | |
p <- p + geom_line(data = forecast, aes(x = ds, y = yhat), color = "#0072B2") | |
p <- p + geom_ribbon(data = forecast, aes(x = ds, ymin = yhat_lower, ymax = yhat_upper), fill = "#0072B2", alpha = 0.3) | |
p <- p + geom_point(data = valid, aes(x = ds, y = y), size = 0.5, color = '#4daf4a') | |
p <- p + geom_point(data = test, aes(x = ds, y = y), size = 0.5, color = 'red') | |
p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment