0

Let consider a simple plot

library(tidyverse)

mtcars %>% 
  ggplot(aes(mpg, disp)) +
  geom_point() +
  geom_smooth()

It automatically set labels on Y axis 200-400 with 200 points intervals, and 10-15-20-25-30-35 on X axis with 5 points intervals.

How to setup let say 50 points intervals on Y axis, and 10 points on X?

Thanks

Andrii
  • 2,469
  • 21
  • 26
  • 2
    [`scale_x_continuous(breaks=...)`](https://ggplot2.tidyverse.org/reference/scale_continuous.html) – r2evans Oct 01 '21 at 18:38

0 Answers0