Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. 'data.frame': 468 obs. of 3 variables:
  2. $ date : Date, format: "2019-04-11" "2019-04-12" "2019-04-13" ...
  3. $ Object : chr "Object1" "Object2" "Object3" "Object 4" ...
  4. $ daily_sales: int 1 257 178 177 255 240 231 214 193 174 ...
  5.  
  6. ggplot(df, aes(x=date,
  7. y=daily_sales,
  8. colour=Object,
  9. group=Object)) +
  10. geom_line() +
  11. geom_vline(aes(xintercept=imp.dates[1]),
  12. linetype=4,
  13. colour="black")
  14.  
  15. ggplot(df, aes(x=date,
  16. y=daily_sales,
  17. colour=Object,
  18. group=Object)) +
  19. geom_line() +
  20. geom_vline(aes(xintercept=imp.dates),
  21. linetype=4,
  22. colour="black")
  23.  
  24. Error: Aesthetics must be either length 1 or the same as the data (40): xintercept
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement