Description Usage Arguments Value
View source: R/scoreBarchart_scenariosByCluster.R
Create a bar chart with scores per criteria cluster per scenario
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | scoreBarchart_scenariosByCluster(
weighedEstimates,
estimateCol,
parentCriterionOrder = unique(weighedEstimates$parentCriterion_id),
parentCriterionLabels = NULL,
scenarioOrder = unique(weighedEstimates$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"
)
|
weighedEstimates |
A 'weighedEstimates' 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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.