A passthrough function that creates a table header appropriate to the class of the data object being passed. Expected classes are:
CrossTabVar
ToplineVar
ToplineCategoricalArray
Title indicates whether the title should be displayed, or not (as in the case of multiple banners displayed underneath each other, the title only appears on the top one). Assumes that `\banner[a-z]` macros are defined in the preamble
tableHeader(var, theme) # S3 method for default tableHeader(var, theme) # S3 method for CrossTabVar tableHeader(var, theme) # S3 method for ToplineVar tableHeader(var, theme) # S3 method for ToplineCategoricalArray tableHeader(var, theme)
var | An object of class ToplineCategoricalArray |
---|---|
theme | A theme object from themeNew |
Importantly, this also controls the relative widths of the columns.