當我如何可以去掉字母「A」從這個代碼生成的傳奇?如果我刪除geom_text
,那麼'a'字母不會顯示在圖例中。不過,我想保留geom_text
。刪除「一」從Legend採用了美學和geom_text
ggplot(data = iris, aes(x = Sepal.Length, y=Sepal.Width, shape = Species, colour = Species)) +
geom_point() +
geom_text(aes(label = Species))