Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plot_grid not preserving italic font #171

Open
kevinVervier opened this issue Oct 14, 2020 · 0 comments
Open

plot_grid not preserving italic font #171

kevinVervier opened this issue Oct 14, 2020 · 0 comments

Comments

@kevinVervier
Copy link

kevinVervier commented Oct 14, 2020

Good day,

I had created multi-figures ggpubr panels where the tick labels are in italic using options like font.label=c(9,"italic")
However, when creating a plot_grid with them, the tick labels are no longer in italic.

 initial_grid <- plot_grid(pa,pd,pb,pe,pc,pf,
          labels=c('(a)','(b)','(c)','(d)','(e)','(f)'),ncol=2)

cow_G <- plot_grid(NULL, pg,
                    rel_heights = c(0.1, 1.85),
                    ncol = 1,
                    label_y = 1 + 0.07 /1.85,
                    labels = c("","(g)"))

all_cow <- plot_grid(initial_grid, cow_G,nrow = 2)

svg(filename = 'myplot.svg',width = 12, height = 17)
 ggdraw(all_cow) +
   draw_plot(all_cow)
 dev.off()

Thanks,
Kevin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant