I am trying to modify my figure legend to change the title of the legend and the item names within the legend. The code noted below will not change the names, the figure remains the same. We have tried using fill = SamplerNum instead of color = or group = and then it removes the legend and makes the lines on the graph grey. Have also tried scale_color_manual and guides() (see guides() code below)
ggplot(aes(x=Week, y=Log_Quant, group=SamplerNum, color= SamplerNum))+
geom_line()+
theme(axis.text.x = element_text(hjust = 1))+
ylab('Log10 Sporangia')+
xlab('Week Number')
plot + [![enter image description here][1]][1]guides(color = guide_legend(title = "Sampler Number", labels = c("Sampler 2", "Sampler 8", "Sampler 11")))