Guest User

Untitled

a guest
Jul 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. date1 strike volume price
  2. 09:35:00 223.5 22 225.09
  3. 09:35:00 224.0 139 225.09
  4. 09:35:00 224.5 104 225.09
  5. 09:35:00 225.0 1051 225.09
  6. 09:36:00 223.5 27 225.16
  7. 09:36:00 224.0 126 225.16
  8. 09:36:00 224.5 2652 225.16
  9. 09:36:00 225.0 118 225.16
  10. 09:37:00 223.5 33 225.13
  11. 09:37:00 224.5 106 225.13
  12. 09:37:00 225.0 251 225.13
  13. 09:38:00 224.0 45 225.11
  14. 09:38:00 224.5 11 225.11
  15. 09:38:00 225.0 16 225.11
  16. 09:39:00 223.5 43 224.90
  17. 09:39:00 224.0 40 224.90
  18. 09:39:00 224.5 50 224.90
  19. 09:39:00 225.0 1465 224.90
  20.  
  21. plotdata<-data.frame(as.factor(date1),as.factor
  22. (MyDataPlot$strike),MyDataPlot$trade_volume,MyDataPlot$underlying_bid)
  23. colnames(plotdata)<-c('date1','strike','volume','price')
  24. ggplot(plotdata, aes(y=volume,x=date1, fill = strike)) +
  25. geom_bar(stat="identity", position = "dodge") +
  26. geom_line(aes(x=date1,y = price, colour = "Price",group=1))+
  27. scale_y_continuous(sec.axis = sec_axis(~.*1,name = "Price"))
Add Comment
Please, Sign In to add comment