Function for creating a new instance of the gridifyObject class.
Arguments
- row
A numeric value, span or sequence specifying the row position of the object.
- col
A numeric value, span or sequence specifying the row position of the object.
- height
A numeric value specifying the height of the object as a fraction of the row (interpreted in
npc). Default is 1. Ignored whenvjust != 0.5and the grob is fixed-size: in that case the viewport is sized togrid::grobHeight()so the object can be anchored within a taller row.- width
A numeric value specifying the width of the object. Default is 1.
- vjust
A numeric value in
[0, 1]specifying the vertical anchoring of the object within its cell.0aligns to the bottom,0.5(default) centers it, and1aligns to the top. Anchoring only takes effect for fixed-size grobs (e.g.gt::as_gtable(),flextable::gen_grob()). Flexible grobs (e.g.ggplot2::ggplotGrob()) always fill the full row regardless ofvjust. For fixed-size table grobs, edge values (0or1) place the table directly against the object-row edge; add spacer rows in a custom layout or use an inset value such as0.05or0.95if nearby text appears too close.
