scale_x_continuous()
and scale_y_continuous()
can change how the axis is plotted. Can use the breaks
argument to specify how you want the axis ticks to be.
range(pull(Orange, circumference))
[1] 30 214
range(pull(Orange, age))
[1] 118 1582
plot_scale <-ggplot(Orange, aes(x = circumference, y = age)) +
geom_point(size = 5, color = "red", alpha = 0.5) +
geom_line(size = 0.8, color = "brown", linetype = 2) +
scale_x_continuous(breaks = seq(from = 20, to = 240, by = 20)) +
scale_y_continuous(breaks = seq(from = 100, to = 1600, by = 200))