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())
原文地址:https://www.cnblogs.com/yaos/p/14014118.html