I'm just including one plot here, but the issue exists with different bayesplot plots as well. patchwork 1.0.0 works just fine with "home-made" faceted plots, so it's possible that this is bayesplot not conforming to standards. The grid package seems to be the origin of the layout.pos.row variable.
I don't know if it's of any use, but the following does not raise an error for nrow >= 2. Unfortunately, the resulting plot is "stacked" and the y-axis is inverted:
plot1+plot1+ plot_layout(ncol=2, nrow=7)
The text was updated successfully, but these errors were encountered:
Googling for Error in grid.Call.graphics(C_setviewport, vp, TRUE) : invalid 'layout.pos.col' brought me to this issue. p1 + p2 & theme(strip.placement = NULL) doesn't eliminate it. grid.arrange(p1, p2, ncol = 2) works fine. Versions of grid 4.1.0, gridExtra 2.3, patchwork 1.1.