hughjonesd / ggmagnify

Create a magnified inset of part of a ggplot object
https://hughjonesd.github.io/ggmagnify/
Other
275 stars 3 forks source link

Ggmagnify "axes = false" not working with complex plot theme() #3

Closed jonathonkuntz closed 1 year ago

jonathonkuntz commented 1 year ago

When using complex theme() in original ggplot, ggmagnify()'s "axes = FALSE" does not work.

ggplot(data = dat, aes(x=x, y=y, color = z)) + theme(axis.text.x = element_text(angle = 315, hjust = 0, vjust = 1, size = 8), axis.text.y = element_text(size = 8), axis.title.x = element_text(size = 9), axis.title.y = element_text(size = 9, vjust = 2.5))

hughjonesd commented 1 year ago

Should be fixed in master. Thanks. Don't forget to make examples self-contained and reproducible!