justify_gtable: Justify a tableGrob

View source: R/justify_gtable.R

justify_gtableR Documentation

Justify a tableGrob

Description

Correctly justifies a 'gtable' object returned from the 'gridExtra::tableGrob' function.

Usage

justify_gtable(x, hjust = "center", vjust = "center", draw = FALSE)

Arguments

x

gtable; A gtable returned from 'gridExtra::tableGrob'.

hjust

character; Horizontal justification. One of "left", "right", or "center" (default).

vjust

character; Vertical justification. One of "left", "right", or "center" (default).

draw

boolean; Should the table be drawn?

Details

This function was provided in https://stackoverflow.com/a/32111143/7454101 by the 'gridExtra' author baptiste.

Value

A 'gtable' object


FluvialGeomorph/fluvgeo documentation built on Feb. 19, 2025, 4:24 p.m.