I have added the following line at the end of the ggplot code: scale_colour_manual(breaks = c("Q0", "Q1"), values = c("red", "black"))
enter image description here