I am trying to create a manual legend when plotting two time series as two columns of one dataset on a figure.
ggplot(data,aes(x=datetime)) + geom_line( aes(y=y1), color = 'red') + geom_line(aes( y=y2),color='blue')
I am getting a figure with no legend so far
I just need to add a legend with names for the colors red and blue like: