gggrid
Combines several plots on one figure, organized in a regular grid.
Examples
Return
SubPlotsFigure object.
Parameters
Collection of plots. Use Null-value to fill-in empty cells in grid.
Number of columns in grid. If not specified, shows plots horizontally, in one row.
Relative width of each column of grid, left to right.
Relative height of each row of grid, top-down.
default = 4. Cell horizontal spacing in px.
default = 4. Cell vertical spacing in px.
default = true. Whether to stretch each plot to match the aspect ratio of its cell (fit = true
), or to preserve the original aspect ratio of plots (fit = false
).
default = false. If true
, align inner areas (i.e. "geom" bounds) of plots. However, cells containing other (sub)grids are not participating in the plot "inner areas" layouting.
String or Boolean Controls sharing of X-axis limits between subplots in the grid.
'all'/True - share limits between all subplots.
'none'/False - do not share limits between subplots.
'row' - share limits between subplots in the same row.
'col' - share limits between subplots in the same column.
String or Boolean Controls sharing of Y-axis limits between subplots in the grid.
'all'/True - share limits between all subplots.
'none'/False - do not share limits between subplots.
'row' - share limits between subplots in the same row.
'col' - share limits between subplots in the same column.