generate chart plot for absolute difference and percent difference

plot_class_difference(
  data = NULL,
  scenRef = NULL,
  scenDiff = NULL,
  theme = NULL,
  theme_default = ggplot2::theme_bw(),
  diff_text = NULL,
  scales = "free",
  diff_type = "bar",
  size = 1.5,
  break_interval = NULL,
  include_points = FALSE,
  summary_line = FALSE,
  data_agg_ref = NULL,
  data_agg_diff = NULL,
  palette = NULL
)

Arguments

data

Default = NULL.

scenRef

Default = NULL.

scenDiff

Default = NULL.

theme

Default = NULL

theme_default

Default = ggplot2::theme_bw(). Default rchart themes.

diff_text

Default = NULL. Text to remove from diff scenario names.

scales

Default = "free". Choose between "free", "free_y", "free_x", "fixed"

diff_type

Default = "bar". Choose between "bar" or "line"

size

Default = 1.5. Line size

break_interval

Default = NULL. Intervals between x breaks starting from first x point.

include_points

Default = FALSE. Add data points to all line charts.

summary_line

Default = FALSE. Add parameter summary line to all bar charts.

data_agg_ref

Default = NULL. Aggregated param data for the summary line on the scenRef bar chart.

data_agg_diff

Default = NULL. Aggregated param diff data for the summary lines on the scenDiff bar charts.

palette

Default = NULL. Named vector with custom palette colors (can include classes, regions, and/or scenarios; class colors will be used if provided)