myTableGrob: Create custom table grob with title

View source: R/myTableGrob.R

myTableGrobR Documentation

Create custom table grob with title

Description

Creates table grob in format that is most common for my usage.

Usage

myTableGrob(data_dt, title_v, fontsize_v = 14)

Arguments

data_dt

Data.table that the grob will be made out of

title_v

Title for display

fontsize_v

Fontsize for title. Default is 14 (goes well with my_theme)

Value

gtable object

Examples

data_dt <- data.table("A" = LETTERS[1:5], "B" = 1:5)
myGrob <- myTableGrob(data_dt, title_v = "Test")

weshorton/wrh.rUtils documentation built on Oct. 28, 2024, 7:24 a.m.