gghighlight seems to be creating extra points when I highlight. Any tips here? I imagine I must be doing something wrong.
library(tidyverse)
library(gghighlight)
mtcars<-mtcars
#produces as expected
ggplot(mtcars) +
geom_jitter(aes(x=factor(cyl),y=wt,col=factor(gear)),show.legend = FALSE)
#produces as expected
#creates extra points?
ggplot(mtcars) +
geom_jitter(aes(x=factor(cyl),y=wt,col=factor(gear)),show.legend = FALSE)+gghighlight::gghighlight(wt>3,label_key = gear)
Edit, adding plots:
Does indeed seem to be the case:
Now there are 9. So in conclusion: adding highlight does indeed seem to make additional points being plotted...