【发布时间】:2023-04-09 09:10:01
【问题描述】:
如何从该代码生成的图例中删除字母“a”?如果我删除geom_text,那么'a' 字母将不会显示在图例中。不过,我想保留geom_text。
ggplot(data = iris, aes(x = Sepal.Length, y=Sepal.Width,
shape = Species, colour = Species)) +
geom_point() +
geom_text(aes(label = Species))
【问题讨论】:
标签: r ggplot2 legend aesthetics