I've created a bar chart in ggplot2 and added an hline, no problems there. Where I'm running into trouble is that I want to add the value for the hline somewhere on the hline (ideally just above the line on the left side, just far enough from the axis to be visible as not a tick mark, though the middle would also work) and I'm having a lot of trouble mostly because the geom_label keeps adding the label intended for the hline to the bar chart. Here's the code to produce an example of the kind of chart I'm working on:
# Stack Overflow Example
library(ggplot2)
plotData_A <- data.frame(name = c('Jim', 'Bill', 'Bob', 'Sue', 'Terry', 'Jill'), avg_leads = c(3,5,4,7,4,5))
plotData_B <- data.frame(salesman = c('Megan', 'Tim'), leads = c(7,4))
i <- as.character(plotData_B[1,1])
myPlot <- ggplot(plotData_A, aes(name, avg_leads, fill = name)) + geom_bar(stat = "identity") + theme(axis.title.x=element_blank(),axis.text.x=element_blank(),axis.ticks.x=element_blank()) + scale_fill_brewer(palette="Spectral") + ylab("Average Leads Created per Director") + ggtitle(paste0("Leads Converted: ", i)) + geom_hline(yintercept = plotData_B[which(plotData_B$salesman == i), 2], size = 1.25, linetype = "dotdash")
Any help you can provide is much appreciated.