I'm not sure if this is what you want, but you can do a hack:
# drop first break sx <- scale_x_continuous() sx$.tr$input_breaks <- function(., range) grid.pretty(range)[-1] m <- qplot(rating, votes, data=subset(movies, votes > 1000), na.rm = T) m + sx
but note that this also affects the y axis ...
And probably this is an easy way to make your own conversion object.
TransIdentity2 <- Trans$new("identity2", "force", "force", "force") TransIdentity2$input_breaks <- function(., range) pretty(range, 3) m + scale_x_continuous(trans="identity2")
in this case, it does not affect the y axis.
source share