plot-api / jetbrains.letsPlot / gggrid

gggrid

fun gggrid(plots: Iterable<Plot>, ncol: Int, cellWidth: Int, cellHeight: Int, hGap: Int = 0, vGap: Int = 50, fit: Boolean = false): GGBunch

Arrange plots in cells of a regular grid.

Parameters

plots - Collection of plots.

ncol - Number of columns in grid.

cellWidth - Width of cell in px.

cellHeight - Height of cell in px.

hGap - Horizontal gap between the grid cells in px. Default: 0

vGap - Vertical gap between the grid cells in px. Default: 50

cellHeight - Height of cell in px.

fit - Whether to set size of each plot to the size of grid cell. Default: false.

Return
GGBunch object.