column_chart_waterfall_variance: Generate column waterfall chart with absolute variance.

Description Usage Arguments Value Examples

View source: R/column_chart_functions.R

Description

Generate column waterfall chart with absolute variance.

Usage

1
2
3
4
5
6
7
8
9
column_chart_waterfall_variance(
  x,
  baseline,
  real,
  colors = 1,
  data = NULL,
  result_title,
  interval = "months"
)

Arguments

x

vector containing labels for x axis or name of column in data with values of x axis labels

baseline

vector containing base values or name of column in data with base values

real

vector containing values that will be compared to baseline or name of column in data with that values

colors

1 if green color represents positive values having good business impact and red negative values having bad impact or 2 if otherwise

data

data frame with columns containing data for x, baseline or real series

result_title

title for the result bar

interval

intervals on x axis. The width of the bars depends on this parameter

Value

object of class tidychart with a character vector containing SVG elements

Examples

1
2
3
4
x <- month.abb
baseline <- rnorm(12)
real <- c(rnorm(6, mean = -1), rnorm(6, mean = 1))
column_chart_waterfall_variance(x, baseline, real, result_title = 'year profit')

tidycharts documentation built on Jan. 18, 2022, 5:07 p.m.