- coin
A coin object.
- dset
Data set from which to extract the variable to plot. Passed to get_data().
- iCode
Code of variable or indicator to plot. Passed to get_data().
- ...
Further arguments to pass to get_data(), e.g. for filtering units.
- uLabel
How to label units: either "uCode", or "uName".
- axes_label
How to label the y axis and group legend: either "iCode" or "iName".
- by_group
Optional group variable to use to colour bars. Cannot be used if stack_children = TRUE.
- filter_to_ends
Optional way to filter the bar chart to only display the top/bottom N units. This is useful in cases
where the number of units is large. Specify as e.g. list(top = 10) or list(bottom = 10) to return only the top or bottom
ten units respectively (the value 10 can be changed of course).
- dset_label
Logical: whether to include the data set in the y axis label.
- log_scale
Logical: if TRUE uses a log scale for the y axis.
- stack_children
Logical: if TRUE and iCode refers to an aggregate, will plot iCode with each bar split into
its underlying component values (the underlying indicators/aggregates used to create iCode). To use this, you must
have aggregated your data and dset must point to a data set where the underlying (child) scores of iCode are available.
- bar_colours
Optional vector of colour codes for colouring bars.
- flip_coords
Logical; if TRUE flips to horizontal bars.