I'm trying to remove the 'n' legend from the following plot. I'm guessing it's related to the stat
part of geom_bar()
but am not entirely sure what it is showing and hence am not sure how to remove it. I do want the fill legend so show.legends=FALSE
isn't the right option. Sorry if this is a duplicate but after
a lot of looking I can't find the answer, changing the legend on a scale_x_x doesn't cover it.
ggplot(iris,aes(x=Sepal.Length,y=Sepal.Width,fill=Species))+
geom_bar(stat="sum")