In a Kolada values table, only KPI ID names are preserved. But in plots you
often want to add a legend to explain what each KPI ID represents. But since
KPI explanations are mostly relatively wordy, ggplot2 legends are
under-dimensioned for this task. values_legend
returns a string which
can conveniently be used as caption to a plot instead.
Arguments
- values_df
A Kolada value table, as created by
get_values
.- kpi_df
A KPI table, e.g. as created by
get_kpi
.