I came across the question of Brandon Bertelesen because I had the same problem. However, even his MWE does not work with me; I either get:
Error: stat_count() must not be used with a y aesthetic
when I include geom_bar()
or
Error in scale_y_continuous("", formatter = "percent") : unused argument (formatter = "percent")`
when I include scale_y_continuous("",formatter="percent")
but not geom_bar()
Can someone explain me what I did wrong? And maybe post an updated answer to the original question?