Learn R Programming

gridify (version 0.7.4)

gridifyCells: Create a gridifyCells

Description

Function for creating a new instance of the gridifyCells class. gridifyCells consists of multiple gridifyCell objects and is an input object for gridifyLayout.

Usage

gridifyCells(...)

Value

An instance of the gridifyCells class.

Arguments

...

Arguments passed to the new function to create an instance of the gridifyCells class. Each argument should be the result of a call to gridifyCell.

See Also

gridifyLayout()

Examples

Run this code
cell1 <- gridifyCell(
  row = 1,
  col = 1,
  x = 0.5,
  y = 0.5,
  hjust = 0.5,
  vjust = 0.5,
  rot = 0,
  gpar = grid::gpar()
)
cell2 <- gridifyCell(
  row = 2,
  col = 2,
  x = 0.5,
  y = 0.5,
  hjust = 0.5,
  vjust = 0.5,
  rot = 0,
  gpar = grid::gpar()
)
cells <- gridifyCells(title = cell1, footer = cell2)

Run the code above in your browser using DataLab