I've got a continuous variable where most observations are concentrated at one end of the spectrum. I'd like to display this in a graphic somewhat like this:
I tried it with position_jitter:
ver_ocupacoes |>
ggplot(mapping = aes(x = n, y = 0))+
geom_point(alpha = 0.5, position = position_jitter(width = 0, height = 10, seed = 1))
Also tried making a geom_dotplot instead:
ver_ocupacoes |>
ggplot(mapping = aes(x = n))+
geom_dotplot(stackdir = "center",
stackratio = 0.5,
dotsize = 0.2,
method="dotdensity",
stackgroups = T,
binpositions="all")
And this was the result:
So neither one is quite what I want. Any ideas on how to jitter the points around a central axis like in the first example?



