Given a plot where the x axis is discrete, given by a ordered factor, like this plot:
with the levels:
D E F G H I J
1 1 1 2 2 3 4
Is there a way to do:
scale_x_discrete(breaks=c("D","G", "I", "J"), lables=c(1,2,3,4))
without manually copying the breaks?