values_legend | R Documentation |
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)
values_df |
A Kolada value table, as created by
|
kpi_df |
A KPI table, e.g. as created by |
A string which should be used as caption in a plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.