Number of rows / columns for facet wrap in AlgebraOfGraphics

Yeah, for now you have to manually specify a list of positions, eg

palettes = (layout=[(1, 1), (1, 2), (2, 1), (2, 2), (3, 1)],)
draw(plt, palettes)

Definitely worth it to add a more straightforward solution to this. I was thinking something like

palettes = (layout=wrap(cols=3),)
1 Like