で伝説のフォントを調整します。私はcex =
を使用してボックスを調整しようとしましたが、ボックス全体のサイズのみを調整できますが、テキストフォントとは関係ありません。は、私は、テキストがプロットボックス向こうにある</p> <p><a href="https://i.stack.imgur.com/3nUuy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3nUuy.png" alt="Legend of a plot"></a></p> <p>の下に表示凡例を生成するために<code>legend()</code>を使っR
テキストフォントを小さくするにはどうすればよいですか?ここで
は私のサンプルコードです:
legend("bottomleft", legend = c("Simulated", "Estimated/Predicted
Median", "95% Credit Intervals"),
col = c("gray35", "red", "red"), lty = c(1, 1, 2),
lwd = c(3, 2, 1),
text.font = 3, inset=.02, bg='gray90')
これは、グラフィックスデバイスの作成方法によって異なります。しかし、あなたは 'text.width'引数でボックスを拡張することができます – rawr