Positioning values of stacked barchart in the center using ggplot2 [duplicate]
问题 This question already has answers here : Showing data values on stacked bar chart in ggplot2 (2 answers) Closed 2 years ago . I've created a stacked barchart and faceted using two variables. I'm unable to position the values in the barchart in the middle, it either appears at the extremes or overlaps. The expected image is the following: I've pasted the script below. Any help would be appreciated. library(dplyr) library(reshape2) library(ggplot2) year<-c("2000","2000","2010","2010","2000",