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.
values_legend(values_df, kpi_df)
A Kolada value table, as created by
get_values
.
A KPI table, e.g. as created by get_kpi
.
A string which should be used as caption in a plot.