formatDTBarVar | R Documentation |
datatable
as a barplot.Format a variable in a datatable
as a barplot.
formatDTBarVar(
tableDT,
data,
barVar = NULL,
barColorThr = NULL,
barRange = NULL,
getCol = function(x) x
)
tableDT |
|
data |
Data.frame with content of |
barVar |
Character vector with numeric variable of |
barColorThr |
Numeric vector with threshold to consider to color the bar, either:
|
barRange |
(optional) range for the bars, either:
If not specified, the range of each |
getCol |
Function, which for an index of a column
in |
Updated tableDT
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.