scoreBarchart_criteria_for_singleDecision.Rd
Create a bar chart with scores per criterion for one alternative
scoreBarchart_criteria_for_singleDecision( multiEstimateDf, estimateCol, decision_id, scenario_id = NULL, scenarioDefinitions = NULL, alternative_value = NULL, fill = "black", strokeColor = "black", strokeSize = 0.1, title = "MDMCDA criteria bar chart for '%s'", subtitle = "Scores for alternative '%s' (total: %s)", xLab = "Criteria", yLab = "Score", criterionOrder = NULL, criterionLabels = NULL, parentCriterionOrder = NULL, parentCriterionIds_by_childId = NULL, alternative_label = NULL, decisionLabels = NULL, alternativeLabels = NULL, xLabelRotationAngle = 45, normalizeScoreAxis = TRUE, verticalPlot = FALSE, scoreDigits = 0, theme = ggplot2::theme_minimal(base_size = mdmcda::opts$get("ggBaseSize")), guides = ggplot2::guide_legend(nrow = 2), legend.position = "top", legend.box.margin = ggplot2::margin(0.5, 0.5, 0.5, 0.5, "cm") )
multiEstimateDf | A `multiEstimateDf` object. |
---|---|
estimateCol | The column name with the estimates to use. |
fill | The color to use to fill the bars, if not by criterion cluster. |
strokeColor, strokeSize | The color and pen width of the stroke. |
title, xLab, yLab | The title and x and y axis labels. |
criterionOrder | The order of the criteria, a vector with criterion identifiers. |
criterionLabels | The criterion labels, a names vector where every element if a label and the corresponding name the criterion identifier. |
parentCriterionOrder | The order of the parent criteria (the clusters), a vector with criterion identifiers. |
parentCriterionIds_by_childId | A names vector to easily find the parent criterion identifier of each criterion identifier; the names should be the criterion identifiers in `criterionOrder`, and the values the corresponding parent criterion identifiers. |
xLabelRotationAngle | THe angel to rotate the x axis labels. |
verticalPlot | Whether to plot vertically. |
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. |
A `ggplot2` plot.