I am struggling to add colours to my charts but I keep getting the error:
continuous value supplied to discrete scale
This is the code I am using:
ggplot(by_team_mean_score1) +
geom_col(mapping = aes(x = reorder(team1, mean_score1), y = mean_score1))+
theme(axis.text.x = element_text(angle = 60, hjust = 1)) +
ggtitle("Mean No. of Home Goals") +
xlab("Team") +
ylab("Mean No. Home Goals")