formatDTBarVar {clinUtils} | R Documentation |
Format a variable in a datatable
as a barplot.
Description
Format a variable in a datatable
as a barplot.
Usage
formatDTBarVar(
tableDT,
data,
barVar = NULL,
barColorThr = NULL,
barRange = NULL,
getCol = function(x) x
)
Arguments
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 |
Value
Updated tableDT
Author(s)
Laure Cougnaud