I was trying to put the labels to all the bars on the plot, but some of them keep being under the bars. What should I edit in the code?
ggplot(data, aes(x = year,y = value)) +
geom_text(aes(label=value), vjust=-3.5, size=3.5)+
geom_bar(aes(fill = variable), stat = "identity",position = "dodge")+
scale_x_continuous(breaks = unique(data$year))+
ylab("Number of candidates")+
theme(axis.title.x=element_blank())+
scale_fill_discrete(name="",
labels=c("All", "Female"))