I have been playing around in R Studio with some public datasets that I downloaded off the internet. For some reason, sometimes when I try and create a boxplot with two categorical variables, the graph always displays the mean bars to be equal despite the fact that the means are different (this is displayed in the picture that I attached). Is someone able to tell me why R keeps doing this?
FYI, PPGENDER 1 & 2, as well as Industry 5 & 16, are both categorical factors. SH is my continuous outcome (sorry for the poor variable names).
ggplot(data = Data) + geom_boxplot(aes(x = PPGENDER, y = SH, fill = INDUSTRY_col)) + coord_flip()