3
注釈テキストの背景色を緑色に変更して、その背後に何かを隠すようにしたいとします(下の例の水平線など)。それ、どうやったら出来るの?ggplot2 - annotate - テキスト注釈の背景色を変更する
ggplot() +
geom_hline(yintercept=0) +
annotate("text",x=0,y=0,label="Here is a line")
注釈テキストの背景色を緑色に変更して、その背後に何かを隠すようにしたいとします(下の例の水平線など)。それ、どうやったら出来るの?ggplot2 - annotate - テキスト注釈の背景色を変更する
ggplot() +
geom_hline(yintercept=0) +
annotate("text",x=0,y=0,label="Here is a line")