i made an histogramm and added some ablines, now i want to add a legend for the whole plot.
This is my code for the legend:
legend("topright", legend = c("TIM", "PIM", "RIM"), col = c("green", "yellow", "blue"), lty = 1, lwd = 2.5)
The 1 behind RIM should be subscript.
For most of you this is just a small thing but its part of my task and i didn't find a solution with google.
Hopefully you can help me.
Thank you very much