I am trying to create a barplot using ggplot2 in shiny that has lines representing the mean for each of the bars. In other words, there will be 5 different mean lines (that are based on the data within the 5 separate bars of the plot). Is it possible to do this?
I already know that it is possible to create an intercept that can represent the mean; however, I am unaware of being able to do this for each individual bar rather than the entire bar plot:
geom_hline(yintercept=Mean1, size = .8,linetype="dotdash")