I realize this is probably a simple issue, but I cannot figure out why ggplot will not add a legend to my graph. I looked through the other help pages on this site concerning the same issue, but nothing I tried worked. Maybe based on my data I need to find another way to arrange things, but again, nothing I have tried has worked out. Thank you for your help!
Here is my data:
YEAR QUOTA LANDINGS
1 2000 4.0 8.0
2 2001 4.0 4.9
3 2002 4.0 4.7
4 2003 4.0 3.0
5 2004 4.0 1.5
6 2005 4.0 2.5
7 2006 4.0 6.3
8 2007 4.0 6.4
9 2008 4.0 9.0
10 2009 12.0 11.7
Here is my code:
DOGFISH <- read.csv("DOGFISH_DATA.csv", stringsAsFactors = F)
na.omit(DOGFISH)
DOGFISH_GRAPH <- ggplot() +
geom_line(data = DOGFISH, mapping = aes(x = YEAR, y = QUOTA ), color = "blue") +
geom_line(data = DOGFISH, mapping = aes(x = YEAR, y = LANDINGS), color = "red") +
labs (x = "Year", y = "Millions of Pounds", color = "Legend") +
theme(panel.background = element_blank())
DOGFISH_GRAPH