Adding geom_line legend in ggplot

Take a look at this related topic Adding manual legend to ggplot2 - #3 by andresrcs

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