Issue displaying legend with ggplot2, nothing displaying … legend items have no correspnsing variable in df
问题 I am plotting a series of lines using ggplot and shading between them. There are 10 lines, but only 5 shaded regions. I want the legend for the 5 shaded regions. At the moment no legend is showing. I thought the line scale_color_manual(name="test",labels = c("90%","70%","50%","30%","10%"), values = c("Darkolivegreen1", "Darkolivegreen2","Darkolivegreen3","Darkolivegreen4","Darkolivegreen")) would add a manual colour bar with the shaded region, but nothing shows. The full plot code is below.