Font size discrepancy in saved plot using ggsave: nested axis text size not change after saving #136
SyedTuhinAli
started this conversation in
General
Replies: 1 comment 3 replies
-
Does all other text scale just fine? I just quickly tried the first example in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
p= ggplot(df,
aes(x = interaction(comb_spp, comb_treat), y = LMF)) +
geom_boxplot(aes(fill = comb_spp)) +
scale_x_discrete(guide = guide_axis_nested(delim = ".")) +
theme(ggh4x.axis.nesttext.x = element_text(size = 16))
works on the R output plot however after saving ggsave("output.jpeg", p, width = 12, height = 8, dpi= 300) the nested x axis text size is no longer 16.
Beta Was this translation helpful? Give feedback.
All reactions