I'm looking to adapt the x-scale of my graph with the ggplot2 library
Here is a example of what I mean:
example <- data.frame(a = 1:2000, b = rnorm(n = 2000))
ggplot(example,aes(a,b)) + geom_point() + scale_x_continuous(n.breaks = 5)
Giving me this plot
What I want to do is to change the breaks of the x-axis so that its scale is not linear anymore.
As a example I'm looking to change the values of the breaks 500,1000,1500 to 2,20,200 respectively. The graph needs to adapt to this change of scale