I am making a graph in ggplot2 (
geom_line) with two lines (split by
aes) - and both show up within the legend. However, I am also making a different line (
stat_function(geom = 'line', color = "black", ...)). Is there a way for me to add a black line to the first legend, so that it looks as if it was all one thing?
At the moment, I avoided the issue, by using the function to create the data for an extra line, so I just plot them all with
geom_line...but it would be more direct to just do it all directly.