stefanedwards / lemon

🍋 Lemon --- Freshing up your ggplots
https://cran.r-project.org/package=lemon
GNU General Public License v3.0
183 stars 11 forks source link

`coord_capped_cart()` reverts axis tick length adjustments #19

Closed thomas-neitmann closed 1 year ago

thomas-neitmann commented 4 years ago

I would like to increase the axis tick length in my plots like this (I made it extreme for emphasis).

 p <- ggplot(mtcars, aes(hp, mpg)) +
  geom_point() +
  theme_classic() +
  theme(axis.ticks.length.x = unit(5, "mm"))
p

image

However, when I add coord_capped_cart() the tick length reverts to the theme's default length.

p + coord_capped_cart(bottom = "right")

image

stefanedwards commented 1 year ago

Apparently resolved with v. 0.4.6 (commit d013a187).