Good afternoon,
I would like to create a boxplot, e.g. with y= score and y=Sex. This is not a problem with:
ggplot(data = mydata, aes(x=Sex, y=score)) + geom_boxplot(aes(),show.legend = TRUE)
However, now I want to "adjust" my boxplot for age so that I can better compare the effect between males and females without effect of age.
I read this post, however it is not really working for me:
Has someone an idea?
Thank you!
Please share example data and codes.