how to add a legend in r code example
Example: r language legend parameters
makePlot()
# Add a legend to the plot
legend(1, 95, legend=c("Line 1", "Line 2"),
col=c("red", "blue"), lty=1:2, cex=0.8,
title="Line types", text.font=4, bg='lightblue')