checkValueType {clinDataReview} | R Documentation |
Check if the specified valueType
parameter can be passed to the
branchvalues
of the plot_ly
treemap/sunburst visualizations.
Description
If this parameter is set to 'total' and the sum of the counts of the the children nodes is not bigger than the parent node, an empty plot is created. In this case, this function set this parameter to: 'relative'.
Usage
checkValueType(data, vars, valueVar, valueType = "total", labelVars = NULL)
Arguments
data |
Data.frame with data. |
vars |
Character vector with variables of |
valueVar |
String with numeric variable of |
valueType |
String with type of values in |
labelVars |
Named character vector containing variable labels. |
Value
If the condition is fullfilled:
updated valueType
and warning;
otherwise input valueType
.
Author(s)
Laure Cougnaud