Internal function that calculates the `overview_tab` for data.table objects
.overview_heat( dat = NULL, id = NULL, time = NULL, label = FALSE, perc = FALSE, col_low = NULL, col_high = NULL, xaxis = NULL, yaxis = NULL, theme_plot = NULL, exp_total = NULL, col_names = NULL )
The data set
The scope (e.g., country codes or individual IDs). The axis is ordered in ascending order by default.
The time (e.g., time periods given by years, months, ...)
If TRUE (default), the total number of observations/percentages of observations are displayed. If FALSE, it returns no labels.
If FALSE (default) plot returns the total number of observations per time-scope-unit. If TRUE, it returns the number of observations per time-scope-unit in percentage
Hex color code for the lowest value (default is "#dceaf2")
Hex color code for the lowest value (default is "#2A5773")
Label of your x axis ("Time frame" is default)
Label of your y axis ("Sample" is default)
Previously generated theme
Expected total number of observations (i.e. maximum) for time unit.
The column names (containing id and time)