I have created a combined chart (Barchart and line) with ggplot. Now, I want to show the total amount above the line and bar. Unfortunately, I can only find explanations on how to add a label to a non-combined chart.
My code for the chart is the following:
ggplot(Ann_Distribution)+
geom_bar(aes(x=Year,y=TOTAL),stat='sum')+
geom_line(aes(x=Year,y=EO), color="Black", group = 1, size = 1) +
xlab("Year") +
ylab("Amount") +
geom_label(aes(label = TOTAL), position = position_stack(vjust = 0.75)) +
geom_label(aes(label = EO))