Hi I have managed to do this plot:
p3 <- ggplot() +
geom_point(data = dv,aes(x = year,y = X1st.Qu.,group = 1),color = "yellow",shape = 95,size = 8) +
geom_point(data = dv,aes(x = year,y = Mean,group = 1),color = "blue", shape = 21,size = 2) +
geom_point(data = dv,aes(x = year,y = X3rd.Qu.,group = 1),color = "red",shape = 95,size = 8) +
geom_line(data = dv,aes(x = year,y = Mean,group = 1),color = "blue", shape = 21,size = .5)+
theme(axis.text.x = element_text(angle = 90,size = 7))+
theme(plot.title = element_text(hjust = 0.5))+
ggtitle("Statistical description per year") +
labs(y="Statistics", x = "Year")
and would like to add a legend for the colours...how is it possible? I tried with scale_color_manual but didn't show up
As per last recommendation to move the color in the aes() arguments this is the result.
The colours are no longer mapped with color although the legend is shown (incorrectly)