wilkelab / cowplot

cowplot: Streamlined Plot Theme and Plot Annotations for ggplot2
https://wilkelab.org/cowplot/
701 stars 84 forks source link

changing size of the second plot in plot_grid() #183

Closed marwa38 closed 3 months ago

marwa38 commented 2 years ago

Hi .. could you please let me know if there is a way to control the dimensions of the second plot? so I can it clearer?

p1 <- plot_ef_bar(lefse)
p2 <- plot_cladogram(lefse, color = c("blue", "red"), only_marker = TRUE, clade_label_font_size = 2.5)

plot_grid(p1, p2, labels = c("A", "B"), label_size = 12)

image thanks

janxkoci commented 3 months ago

Try adding rel_widths = c(1,2) to your plot_grid() call. You can even use floats, like c(1,1.5).

marwa38 commented 3 months ago

i will return to this later if needed, since this have been a long time ago. Many thanks for your response though, that will helpful for this issue.