values_legend {rKolada} | R Documentation |
Create KPI long-form descriptions to add to a plot
Description
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.
Usage
values_legend(values_df, kpi_df)
Arguments
values_df |
A Kolada value table, as created by
|
kpi_df |
A KPI table, e.g. as created by |
Value
A string which should be used as caption in a plot.
[Package rKolada version 0.2.3 Index]