Draws a visualizations of total time spent on different activities in the sample as percent of total time.
totals(df, act)
totals(df, act, colors)
df json data with keys as numbers (as characters) and values for percent of total time.
colors 3 x n (number of activities) json array of colors for the graph. Each hex color in sub-array (e.g., ["#4e52e9", "#f9cb94", "#0f57f5"]) represents:
- color for the wave and border,
- color for text when under the wave,
- color for the text.
act json array of the names of activities.
You can try the interactive demo here: (https://kolpashnikova.github.io/totals)
Kolpashnikova, Kamila. (2022). Total Time Visualizations in R. Toronto,ON: York University.
