change legend position ggplot2 code example
Example 1: ggplot put legend in plot
p + theme(legend.position = c(0.8, 0.2))
Example 2: turn legend off ggplot2
bp + theme(legend.position="none")
p + theme(legend.position = c(0.8, 0.2))
bp + theme(legend.position="none")