I am very new to R and therefore I need some advices.
I want to plot a grouped Boxplots on one axis.
Therefore I used this code:
Run100.mw$Gender <- as.factor(Run100.mw$Gender) Run100.mw$Gender <- factor(Run100.mw$Gender, levels=c(1,2), labels=c("Male", "Female")) library(ggplot2) ggplot(Run100.mw, aes(x= as.factor(YEAR), y = MARK, fill=Gender)) + geom_boxplot()
Unfortunately it returns this error code and I am not able to identify my mistake:
Must request at least one colour from a hue palette.
Thank you in advance for your support,