Visualize variance between baseline and real in absolute units. Choose colors parameter accordingly to buisness interpretation of larger/smaller values.

bar_chart_absolute_variance(
data = NULL,
cat,
baseline,
real,
colors = 1,
y_title,
y_style = "previous"
)

## Arguments

data data frame with columns containing data for x, baseline or real series vector containing category names of values vector containing base values or name of column in data with base values vector containing values that will be compared to baseline or name of column in data with that values 1 if green color represents positive values having good buisness impact and red negative values having bad impact or 2 if otherwise title of the series values style of y axis to indicate baseline scenario

## Value

object of class tidychart with a character vector containing SVG elements

## Examples


# get some data
real <- sin(1:5)
baseline <- cos(1:5)
cat <- letters[1:5]

bar_chart_absolute_variance(
cat = cat,
baseline = baseline,
real = real,
y_title = 'a title')