When I use the colour in aes like this
ggplot(data=olympia,aes(x=year)) + geom_line(aes(y=gold,colour="red")) + geom_line(aes(y=silver,colour="blue"))
it does not work.
If I use the colour argument it shows the right colours red and blue
ggplot(data=olympia,aes(x=year)) + geom_line(aes(y=gold),colour="red") + geom_line(aes(y=silver),colour="blue")
What is the different? What's the fault?
Dataframe
year gold silver
1 2002 12 16
2 2006 11 12
3 2010 10 13
4 2014 8 3