I have been trying to split my legend into two lines but have not been successful (or another attempt is to add a new legend). My line of code for the legend is simply like this:
legend("top",c("P1","P2", "P3", "P4","P5","P6"),lty=c(1,3,3,1,3,3),lwd=2,bty="n", col=c("deepskyblue2","deepskyblue2","red","deepskyblue2","deepskyblue2","red"))
I want to have P1, P2, P3 on the same line then P4,P5,P6 on the 2nd line right under. Please can somebody give me some help.
Thank you very much.