Generate gg-plot of stacked Bars
Usage
gg_stacked_bars(
data,
relative = TRUE,
labels = FALSE,
legend = c("bottom", "left", "top", "right", "none")[5],
reverse = TRUE,
lng = "en",
colours = NULL
)
Arguments
- data
data frame with columns
length.abs
(absolute pipe length in m),length.rel
(relative pipe length in percent),condition
- relative
logical indicating whether to show absolute or relative lenghts
- labels
logical indicating whether to show labels (axes, title) are shown.
- legend
legend position: one of
"bottom", "left", "top", "right", "none"
- reverse
logical indicating whether to stack the bars in reversed order
- lng
language acronym, "de" for German or "en" for English, that is passed to
kwbGompitz:::get_label
- colours
named vector that maps the values in
data$condition
to colour names.