R语言 ggplot2 笔记

legend

设置legend位置和title

ggplot(df, aes(x, y, colour=g)) +
  geom_line(stat="identity") + 
  theme(legend.position="bottom") +
  theme(legend.title=element_blank())
posted @ 2020-07-01 00:08  2021年的顺遂平安君  阅读(48)  评论(0编辑  收藏  举报