kangaroo_data {animbook} | R Documentation |
Kangaroo plot data
Description
This function performs data manipulation and path interpolation of the categorized data. This includes additional data components for labeling and shading.
Usage
kangaroo_data(data, time_dependent = FALSE, height = 0.6, width = 50L)
Arguments
data |
The categorized data. |
time_dependent |
Logical. Should the visualization be time-dependent? The default is FALSE. |
height |
The proportion the point takes in the shaded area. |
width |
The number that controls the runif_max to specify how far apart each point is. |
Details
The function takes the categorized data and interpolates the path for each observation. Additionally, the label and shading data are created.
Value
An object contained the modified data with additional data components.
References
Recreate - Sankey flow chart. (n.d.). Emil Hvitfeldt. Retrieved April 13, 2023, from https://www.emilhvitfeldt.com/post/2018-03-20-recreate-sankey-flow-chart/