I'm ploting annual temperature data by year from a dataframe that contains the minimum, mean and maximum values for each year. I've been unable to get a legend on my plot. Ideally, the legend should have a Legend title and label the line colors as Min, Mean and Max.
Any help would be appreciated.
The data looks like (example) and the data is named "s":
The code:
ggplot(s, aes(Year)) +
geom_line(aes(y=min), color="blue") +
geom_line(aes(y=mean), color="green") +
geom_line(aes(y=max), color="red") +
ggtitle("Fort Collins Mean Annual Temperature") +
ylab("Temperature (degF)")
The Plot:

