View source: R/plots-utility-checkValueType.R
checkValueType | R Documentation |
valueType
parameter can be passed to the
branchvalues
of the plot_ly
treemap/sunburst visualizations.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'.
checkValueType(data, vars, valueVar, valueType = "total", labelVars = NULL)
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. |
If the condition is fullfilled:
updated valueType
and warning;
otherwise input valueType
.
Laure Cougnaud
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.