In R plot (not in ggplot2) how to put multiple legends with different titles?
plot(sin(1:100), type="l", col="red")
lines(cos(1:100), col="blue", lty=2)
legend("bottom", legend=c("Sin"), fill=c("red"), title="Sin Plot")
legend("bottom", legend=c("Cos"), fill=c("blue"), title="Cos Plot")
The second legend "Cos" covers the first one! How do I put second legend bellow fist one with Title?
I am not looking for multipal legends only But multiple legends with DIFFERENT TITLES. For example in this figure:
http://i2.wp.com/www.milanor.net/blog/wp-content/uploads/2015/11/final-1.png?zoom=1.5&w=456