r-lib / scales

Tools for ggplot2 scales
https://scales.r-lib.org
Other
395 stars 107 forks source link

Better breaks calculations for exponential transformations #405

Open thomasp85 opened 11 months ago

thomasp85 commented 11 months ago

Superseedes #59

While we no longer see errors in ggplot2 for these transformations (the report in the original issue), the placement of breaks with various transformations still leave a lot to be desired

library(ggplot2)
dat <- data.frame(x = 5:100)

ggplot(dat) + 
  aes(x = x, y = x) + 
  geom_point() +
  scale_y_continuous(trans = "exp")