| update.textTable | R Documentation |
texttable Object Update a textTable object with new annotation or rowheadLabels.
## S3 method for class 'textTable'
update(object, title=NULL, subtitle=NULL, foot=NULL,
rowheadLabels=NULL, ...)
object |
A |
title, subtitle, foot |
Optional character vectors of annotation for the table. NULL means to
leave the current annotation unchanged (the default); |
rowheadLabels |
Optional character vector or 1-row matrix specifying labels for the row
header columns of the table. NULL means to leave the current value
unchanged (the default); |
... |
Ignored, with a warning. (Present for compatibility with the generic.) |
To indicate that a string in title, subtitle, foot,
or rowheadLabels is to be interpreted as a plotmath
expression, prefix it with MATH_. To indicate that it contains
markdown or HTML tags, prefix it with MKDN_.
A textTable object with annotation set or changed based on the
provided arguments.
textTable
ttbl <- textTable(iris2_tab, title="The iris data",
foot="sd = standard deviation")
# Change annotation:
ttbl <- update(ttbl, title=c("The iris data", "Summary statistics by species"),
foot=character(0))
plot(ttbl)
# Change row header labels:
ttbl <- update(ttbl, rowheadLabels=c("Species", "Summary\nstatistic"))
plot(ttbl)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.