Can anyone work out why my legend wont show with this coding? I tried scale_color_manual, however, doesn't seem to do much
d.Silo = read_xlsx("Raw_Data_Compiled.xlsx",sheet = 1)
d.Dur = read_xlsx("Daily_WS_Data_ Compiled.xlsx",sheet = 2)
d.Strat = read_xlsx("Daily_WS_Data_ Compiled.xlsx",sheet = 1)
ggplot() +
geom_line(data = d.Silo, aes(x = Date, y = evap_comb
), color = "darkorchid1") +
geom_line(data = d.Dur, aes(x = Date, y = Current Evaporation (mm/d)
), color = "dodgerblue") +
geom_line(data = d.Dur, aes(x = Date, y = Penmans (mm/d)
), color = "tomato") +
theme_light() +
scale_color_manual(values = c("darkorchid1","dodgerblue","tomato"),
labels = c("Silo Data",
"Duralie WS Data",
"Penmans")) +
labs(x = "Date (Year)", y = "mm", col = "Legend", title = "Evaporation (mm)") +
coord_cartesian(ylim =c(0, 15)) +
theme(legend.position = "bottom") +
theme(text = element_text(size = 20)) +
theme(plot.title = element_text(hjust = 0.5)) +
theme(axis.title.x = element_text(colour = "black"))