I am making boxplots and jitter to show each individual point. I am then putting text labels on each point. This works fine but as soon as I try to subset which points I want label, the text doesn't align any longer.
Here is my code (with some help from this page): Aligning geom_text to geom_jitter points
library(ggplot2)
ggplot(mtcars, aes(vs, wt, group = am, label = wt)) +
geom_boxplot(outlier.shape = NA) +
geom_jitter(position = position_jitter(seed = 1)) +
geom_text_repel(data = subset(mtcars, wt > 3),
position = position_jitter(seed = 1))
Here is my plot. As you can see the labels are not aligned with the points.

Any ideas why this doesn't work?

