You can remove your legend title with labs(color="") since the color aes gives your legend the name:
library(ggplot2) ggplot(data=df, aes(x=df$X, y=df$Y, color=df$Variable))+ geom_line(size=1)+ labs(x = "x", y = "y", color = NULL) + theme_bw() Plot: [![your plot without legend name][1]][1]
Also working:
scale_color_discrete(name = NULL)
For further information check this thread here [1]: https://i.sstatic.net/ouirp.png