Skip to contents

[Experimental]

A generalized function to create bar charts using the KPI tables.

Usage

generate_kpi_barchart(df, indicator, target, label, faceting, y.axis.title)

Arguments

df

tibble A KPI table, namely C1-C4.

indicator

str Name of the indicator within the KPI table.

target

num A numeric target.

label

str Name of the column containing labels.

faceting

ggplot2 A ggplot2 faceting object. Either using ggplot2::facet_grid() or ggplot2::facet_wrap().

y.axis.title

Str Title of the y axis.

Value

ggplot2 A bar chart.