When I try to add the legend to the bottom center, it overlaps with the y axis label.
Here is an image of the plot for reference:
And my code:
legend('center',
'groups',
lty=1,
col=c("red","gold","blue","green","black","purple","orange","pink","grey","dark blue","violet","dark red","brown","maroon"),
legend=c("Babl","Chli","Cuaz","Frve","Juma","Pafl","Pibr","Pich","Plwr","Prgl","Quvi","Sela","Ulpa","Vaca"),
bty="n",
xpd = TRUE,
ncol=3)