scoreBarchart_criteria.RdCreate a bar chart with scores per criterion
scoreBarchart_criteria( estimatesByCriterion, estimateCol, fill = "black", strokeColor = "black", strokeSize = 0.1, title = "MDMCDA criteria bar chart", xLab = "Criteria", yLab = estimateCol, criterionOrder = NULL, criterionLabels = NULL, parentCriterionOrder = NULL, parentCriterionIds_by_childId = NULL, xLabelRotationAngle = 45, verticalPlot = FALSE, 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") )
| estimatesByCriterion | An `estimatesByCriterion` object as created by [aggregate_estimates_by_criterion()]. |
|---|---|
| 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.