Skip to content

Instantly share code, notes, and snippets.

@agila5
Created October 21, 2025 15:46
Show Gist options
  • Save agila5/eab4a8173df6eb3a78d9df112c5c4e1c to your computer and use it in GitHub Desktop.
Save agila5/eab4a8173df6eb3a78d9df112c5c4e1c to your computer and use it in GitHub Desktop.
library(ggplot2)

toy <- data.frame(
  x = 1:5, 
  y = exp(1:5)
)

ggplot(toy) + 
  geom_point(aes(x, y))

ggplot(toy) + 
  geom_point(aes(x, log(y)))

ggplot(toy) + 
  geom_point(aes(x, y)) + 
  scale_y_continuous(transform = "log")

Created on 2025-10-21 with reprex v2.1.1.9000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment