Skip to content

Instantly share code, notes, and snippets.

@alexhallam
Created May 31, 2022 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexhallam/ccbcadad8c3620358d8512f1bf005df9 to your computer and use it in GitHub Desktop.
Save alexhallam/ccbcadad8c3620358d8512f1bf005df9 to your computer and use it in GitHub Desktop.
theme_set(theme_538)
palette = ["#000000", "#ee1d52"]
df_actuals_forecasts_n = pd.concat([df_WALMART, df_n])
p = (
ggplot(df_actuals_forecasts_n, aes(x="ds", y="y"))
+ geom_line(aes(y = 'y'), color = palette[0])
+ geom_point(aes(y = 'y_sim'), color = palette[1], size = 0.1, alpha = 0.1)
+ scale_x_datetime(breaks=date_breaks("1 month"))
+ theme(axis_text_x=element_text(angle=45))
+ xlab("")
+ ggtitle("Stock Price (Naive)")
+ scale_color_manual(palette)
)
p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment