I made a bargraph and I want to add values above each bar. How can I do that?
My code is this:
ggplot(NOF.dat.allGCDs2, aes(y=count, x=reorder(variable, -count), fill= reorder(variable, -count)))+
geom_bar( stat = "identity", color="black")+
scale_fill_manual(values = pal)+
theme_bw() +
labs(x="Global change drivers", y="Count")+
theme(legend.position = "none") +
theme(axis.text.x = element_text(angle = 25, hjust=1))
I just dot get how to do it.