I was wondering how to connect vertical lines from individual subject data points to a horizontal line. My main issue is that the x-axis is grouped and does not have a continuous variable to specify the position of the line. If I make the line come down from the group (xend), I just end up with 1 vertical line for each group.
Here is what I currently have

ggplot() +
geom_point(data = df, aes(x = Group, y = Number, color = Group), position = "jitter") +
geom_hline(yintercept = 33.25)
If I add
  geom_segment(data = df, 
           aes(x=Group, 
               xend=Group, 
               y=Number, 
               yend=33.25))
I end up with the one vertical line per group, rather than stemming from each subject
