I was wondering how the y axis of a ggplot can be altered in a way that the distance between factors increases or deacreases hetergenous.
x<-c(1:5)
y<-c("Randall","Donavan","Molly","Timothy","Barbara")
plot <- ggplot(df, aes(x = x, y = y)) +
geom_point()
plot
How can one produce a plot with for example "Randall" and "Donavan" close together and "Timothy" and "Barbara" close togehter but a with a big gab between them.
I do not just want to move the labels but alter the differences between the factors.