flip the order of ggplot legend code example Example: turn legend off ggplot2 bp + theme(legend.position="none")