Missing Legend using geom_line

If you manually set values for each line instead of mapping a grouping variable to the colour aesthetic, you have to also manually define the legend.

If you need more specific help, please provide a proper REPRoducible EXample (reprex) illustrating your issue.