Change legend text size
<p>I have searched through stack overflow, I found the following link, but it does not help.</p>

<p><a href="https://stackoverflow.com/questions/16905535/r-legend-trouble-how-to-change-the-text-size-in-legend?rq=1">r legend trouble , how to change the text size in legend</a></p>

<pre><code>plot(c(1,1))
legend("topleft", "Legend", cex=1.3, pch=1, pt.cex = 1)
</code></pre>

<p>Setting <code>pt.cex</code> only changes the point size, but the text does not change at all.</p>

<p>Is there any way we can change the text size in the legend?</p>