add_data {D3partitionR} | R Documentation |
Append data to a D3partitionR object
Description
Append data to a D3partitionR object
Usage
add_data(D3partitionR_object, data, steps, count = "value", color = "name",
label = "name", tooltip = "name", aggregate_fun = NULL)
Arguments
D3partitionR_object |
The D3partitionR object to which the data should be appended |
data |
a data.frame object |
steps |
The vector of steps to be used |
count |
The variable to be used as the count variable, typically, the number of occurences. |
color |
a variable to use as color (default: name) |
label |
a variable to use as label (default: name) |
tooltip |
a variable to use as tooltip (default: name) |
aggregate_fun |
A named list of function which will be used to aggregates to variables used in color, label or tooltips. This only applies to variable in the provided dataset. |
Value
The D3partitionR object with the appended data
[Package D3partitionR version 0.5.0 Index]