SyntaxFix
Write A Post
Hire A Developer
Questions
This works too and also demonstrates how to change the legend title:
ggplot(df, aes(x, y, colour=g)) + geom_line(stat="identity") + theme(legend.position="bottom") + scale_color_discrete(name="")