1
p = ggplot() + 
  geom_line(data = Month_time, aes(x = Month, y = CarrierDelay), color = "red") +
  geom_line(data = Month_time, aes(x = Month, y = WeatherDelay), color = "purple") +
  geom_line(data = Month_time, aes(x = Month, y = NASDelay), color = "yellow") +
  geom_line(data = Month_time, aes(x = Month, y = SecurityDelay), color = "green") +
  geom_line(data = Month_time, aes(x = Month, y = LateAircraftDelay), color = "blue") +
  xlab('Month') +
  ylab('Delay Types [min]')
print(p)

graph picture How to add label or legend for each multiple plot?

Community
  • 1
  • 1
loms
  • 11
  • 2
  • 1
    see my answer in your previous post https://stackoverflow.com/questions/59003622/how-do-you-change-the-x-axis-number/59003680#59003680 – dc37 Nov 23 '19 at 02:43
  • @dc37 Error in scale_x_continous(breaks = 1:12) : could not find function "scale_x_continous" – loms Nov 23 '19 at 02:52
  • `continuous`, I'm editing my code – dc37 Nov 23 '19 at 02:53
  • @dc37 OMG Thanks a lot it worked now!! – loms Nov 23 '19 at 02:56
  • 1
    Great to hear, validate the other post (https://stackoverflow.com/questions/59003622/how-do-you-change-the-x-axis-number/59003680#59003680) and close this one (it's a duplicate of your previous one). Also, see this documentation [What should I do when someone answers my question?](https://stackoverflow.com/help/someone-answers) – dc37 Nov 23 '19 at 02:56
  • @dc37 Okay Thanks again! – loms Nov 23 '19 at 03:00
  • Does this answer your question? [How do you change the X axis number?](https://stackoverflow.com/questions/59003622/how-do-you-change-the-x-axis-number) – camille Nov 23 '19 at 19:20

0 Answers0