Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
プロット用に R で不透明な凡例ボックスを作成するにはどうすればよいのでしょうか? bg="grey" を使用してみましたが、グラフの線がまだ凡例を覆っています。
bg = "white"(またはすでに使用した他の色)を使用する必要があり、線/点/グリッドなどをプロットした後に凡例を描画する必要があります。
例えば:
plot(...) lines(...) grid(...) legend(...) # legend has to be the last command!