Scale x continuous in ggplot. #r #tidyverse #ggplot
library(tidyverse) mtcars %>% ggplot() + geom_point(aes(x = gear, y = wt)) + scale_x_continuous(labels = round, breaks = 3:5)