Remove legend ggplot 2.2

from r cookbook, where bp is your ggplot:

Remove legend for a particular aesthetic (fill):

bp + guides(fill="none")

It can also be done when specifying the scale:

bp + scale_fill_discrete(guide="none")

This removes all legends:

bp + theme(legend.position="none")

Leave a Comment