Advertisement
Guest User

Untitled

a guest
Aug 25th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. df <- data.frame(x =1:44,
  2. For =as.numeric(forecast),
  3. L1 =forecast.CI3,
  4. L2 =forecast.CI4,
  5. U2 =forecast.CI2,
  6. U1 =forecast.CI1,
  7. TR =as.numeric(test))
  8.  
  9. ggplot(df,aes(x))+
  10. geom_line(aes(y=For,color="black"))+
  11. geom_ribbon(aes(ymin=L2, ymax=U2),fill="grey90")+
  12. geom_ribbon(aes(ymin=L1, ymax=U1), fill="grey80")+
  13. geom_line(aes(y=TR,color="red"))+
  14. xlab("Forecast Steps (Day)") +
  15. ylab("Daily Demand (MW)") +
  16. theme_bw(base_size=13)+
  17. theme(axis.title.y=element_text(margin=margin(0,15,0,0)),
  18. axis.title.x=element_text(margin=margin(15,0,0,0)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement