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 @   2021年的顺遂平安君  阅读(48)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示