cell_label: Create an cell_label (S3) object of the given text.

View source: R/compile-cell.R

cell_labelR Documentation

Create an cell_label (S3) object of the given text.

Description

A cell_label object represents a label cell inside a table. It can also contain units.

Usage

cell_label(text, units = NULL, class = NULL, ...)

Arguments

text

character; The text of the label. May include a subset of LaTeX greek or math.

units

character; An optional field that contains units

class

character; An optional field for additional S3 classes (e.g. could be used in html rendering for CSS)

...

optional extra information to attach

Value

A tangram object

Examples

cell_label("Compaction Method")
cell_label("Concentration", "mg/dl")
cell_label("Concentration", "mg/dl", subcol="A")

spgarbet/tg documentation built on Feb. 21, 2023, 3:35 a.m.