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.
ggplot2 を使用してグラフを作成しました。ここで、凡例をグラフではなく、グラフの外側のグリッドに表示したいと考えています。
私の質問は、grid.text で pch シンボルを使用する可能性があるかどうかを誰かが知っているかどうかです。
ここに私が欲しいものを示す画像があります;)
よろしくお願いします
テキストでポイントを直接使用できるかどうかはわかりませんが、grid.text と grid.points を組み合わせることができます。
grid.points(x=rep(0.1,9),y=1:9/10,pch=1:10,default.units="npc") grid.text(x=rep(0.2,9),y=1:9/10,label=letters[1:9],default.units="npc")