Can't figure out how to control ggplot layout using patchwork in this particular way

Hi @cwright1,

You may want to play around with custom layouts using the design argument to plot_layout(). For example:

library(ggplot2)
library(patchwork)

p <- ggplot(mtcars, aes(x=mpg, y=cyl)) + geom_point()

p + p + p + p + p + p + p + 
  plot_layout(
    design = '
    #BCD
    ABCD
    AEFG
    #EFG
  '
  )

1 Like