Caption line naming the unit-cost rates behind the cost plots
Source:R/compute_costs.R
cost_rates_caption.RdFormats the unit-cost rates (EUR per m2 / m3, see default_cost_rates())
as a single-line caption for the cost plots, so every figure names the
rates its EUR values were computed with. Used as the default caption of
plot_cost_vs_overflow_volume(), plot_cost_vs_evaporation() and
plot_cost_overflow_boxplot() (rendered by ggplot at the bottom of the
PDFs) and passed to plotly_add_caption() for the interactive HTMLs
(plotly::ggplotly() drops ggplot captions).
Usage
cost_rates_caption(lang = c("de", "en"), cost_rates = default_cost_rates())Arguments
- lang
Character.
"de"or"en".- cost_rates
listof unit costs as returned bydefault_cost_rates().