I have a dataframe:
df <- data.frame(Name=c('abc', 'bcd', 'cde', 'bcd', 'abc', 'def'), Pos=c(1, 2, 3, 2, 4, 5))
Name Pos
abc 1
bcd 2
cde 3
bcd 2
abc 4
def 5
I want to plot the names in order of their position, but I want each row to appear, even if it's a duplicated value:
ggplot(df, aes(Pos, reorder(Name, -Pos))) +
geom_jitter(width=0, height=0.05)
I can see that 'bcd' has two points at Pos 2, and 'abc' has a point at Pos 1 and 4. But I would like these to be on separate ticks on the y axis. If I change df$Name to a character instead of a factor (df$Name <- as.character(df$Name)), this doesn't help.
Is there a way to do this?

