ggplot change legend text code example
Example 1: ggplot legend title
+ labs(color='NEW LEGEND TITLE')
Example 2: ggplot put legend in plot
p + theme(legend.position = c(0.8, 0.2))
+ labs(color='NEW LEGEND TITLE')
p + theme(legend.position = c(0.8, 0.2))