Create a bar chart with scores per criteria cluster

scoreBarchart_criteriaCluster(
  weightedEstimates,
  estimateCol,
  parentCriterionOrder = unique(weightedEstimates$parentCriterion_id),
  parentCriterionLabels = parentCriterion_ids,
  scenarioOrder = unique(weightedEstimates$scenario_id),
  scenarioLabels = scenario_ids,
  strokeColor = "black",
  strokeSize = 0.1,
  title = "MDMCDA criteria cluster bar chart",
  xLab = "Criteria Cluster",
  yLab = estimateCol,
  theme = ggplot2::theme_minimal(base_size = mdmcda::opts$get("ggBaseSize")),
  guides = ggplot2::guide_legend(nrow = 1),
  legend.position = "top"
)

Arguments

weightedEstimates

A `weightedEstimates` object.

estimateCol

The column name with the estimates to use.

strokeColor, strokeSize

The color and pen width of the stroke.

title, xLab, yLab

The title and x and y axis labels.

theme

The `ggplot2` theme to use.

guides

A guides argument to tweak the legend.

legend.position, legend.box.margin

The position and spacing for the legend.

parentCriterion_ids

The parent criteria to include.

parentCriterion_labels

The labels for the parent criteria.

scenario_ids

The scenarios to include.

scenario_labels

The labels for the scenarios.

Value

A `ggplot2` plot.