scoreBarchart_scenariosByCluster.RdCreate a bar chart with scores per criteria cluster per scenario
scoreBarchart_scenariosByCluster( weightedEstimates, estimateCol, parentCriterionOrder = unique(weightedEstimates$parentCriterion_id), parentCriterionLabels = NULL, scenarioOrder = unique(weightedEstimates$scenario_id), scenarioLabels = NULL, sortByScore = FALSE, decreasing = TRUE, strokeSize = 0, strokeColor = "black", title = "MDMCDA scores by scenarios by criteria cluster", xLab = "Scenario", yLab = estimateCol, theme = ggplot2::theme_minimal(base_size = mdmcda::opts$get("ggBaseSize")), guides = ggplot2::guide_legend(nrow = 2), legend.position = "top" )
| weightedEstimates | A `weightedEstimates` object. |
|---|---|
| estimateCol | The column name with the estimates to use. |
| scenarioOrder | The scenarios to include. |
| scenarioLabels | The labels for the scenarios. |
| sortByScore, decreasing | Whether to sort the scenarios by their total scores, and if so, whether to sort them in decreasing order (from the left side) or in increasing order. |
| 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. |
A `ggplot2` plot.