cecilialee
2/14/2018 - 5:27 AM

Scale x continuous in ggplot

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)