View source: R/gridify-classes.R
| gridifyCell | R Documentation |
Function for creating a new instance of the gridifyCell class. Multiple gridifyCell objects are inputs for gridifyCells.
gridifyCell(
row,
col,
text = character(0),
mch = Inf,
x = 0.5,
y = 0.5,
hjust = 0.5,
vjust = 0.5,
rot = 0,
gpar = grid::gpar()
)
row |
A numeric value, span or a sequence specifying the range of occupied rows of the cell. |
col |
A numeric value, span or a sequence specifying the range of occupied columns of the cell. |
text |
A character value specifying the default text for the cell.
Default |
mch |
A numeric value specifying the maximum number of characters per line.
The functionality is based on the |
x |
A numeric value specifying the x position of text in the cell.
Default |
y |
A numeric value specifying the y position of text in the cell.
Default |
hjust |
A numeric value specifying the horizontal position of the text in the cell, relative to the x value.
Default |
vjust |
A numeric value specifying the vertical position of the text in the cell, relative to the y value.
Default |
rot |
A numeric value specifying the rotation of the cell.
Default |
gpar |
A |
An instance of the gridifyCell class.
gridifyCells(), gridifyLayout()
cell <- gridifyCell(
row = 1,
col = 1:2,
text = "Default cell text",
mch = Inf,
x = 0.5,
y = 0.5,
hjust = 0.5,
vjust = 0.5,
rot = 0,
gpar = grid::gpar()
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.