Skip to content

Instantly share code, notes, and snippets.

@soh-i
Created July 31, 2024 21:19
Show Gist options
  • Save soh-i/ab5c9107dbac4e2c618bce18f6ee9f51 to your computer and use it in GitHub Desktop.
Save soh-i/ab5c9107dbac4e2c618bce18f6ee9f51 to your computer and use it in GitHub Desktop.
ggplot with lockticks (version 3.5.1)
...
scale_y_log10(
guide = guide_axis_logticks(long = 1.5, mid = 1.0, short = 0.5),
breaks = c(0.001, 0.01, 0.1, 1.00), limits = c(0.001, 1), expand = c(0, 0)
) +
scale_x_log10(
guide = guide_axis_logticks(long = 1.5, mid = 1.0, short = 0.5),
breaks = c(0.001, 0.01, 0.1, 1.00), limits = c(0.001, 1), expand = c(0, 0)
) +
...
@soh-i
Copy link
Author

soh-i commented Jul 31, 2024

It's a much better interface than we previously used annotation_logticks

https://ggplot2.tidyverse.org/reference/guide_axis_logticks.html

@soh-i
Copy link
Author

soh-i commented Jul 31, 2024

Screen Shot 2024-07-31 at 14 19 42

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