tcol: Create a column for a ggtable

Description Usage Arguments

View source: R/tcols.R

Description

Create a column for a ggtable

Usage

1
tcol(var, header, format_fun, width, hjust, x, header_hjust, header_x, wrap_len)

Arguments

var

A character string to specify the variable to displayed on the table.

header

A character string to specify the column header to display on the table.

format_fun

A function to apply to the values in the column that will generate the values to display on the table.

width

A unit value (i.e., unit(2, "cm")) to specificy the width of the column.

hjust

A numeric value between 0 (left) and 1 (right) to specify the horizontal justification for the data values.

x

A numeric value between 0 (left) and 1 (right) to specify the horizontal position for the data values.

header_hjust

A numeric value between 0 (left) and 1 (right) to specify the horizontal justification for the headers.

header_x

A numeric value between 0 (left) and 1 (right) to specify the horizontal position for the headers.

wrap_len

the target length at which the values in the column should wrap.


joevanderlans/ggtable documentation built on May 20, 2019, 9:42 a.m.