Skip to contents

with nice percentage x labels

Usage

hbar_percent(
  .tbl,
  x,
  y,
  group = NULL,
  initiative = "reach",
  x_title = "",
  y_title = "",
  group_title = NULL,
  font_family = "Leelawadee",
  stack = FALSE,
  ...
)

Arguments

.tbl

Some data

x

Some numeric column on the x scale

y

Some column on the y scale

group

Some grouping categorical column, e.g. administrative areas

initiative

Either "reach" or "agora" or "impact" for the color palette

x_title

The x scale title. Default to empty string

y_title

The y scale title. Default to empty string

group_title

The group legend title. Defaut to NULL

font_family

The font family. Default to "Leelawadee"

stack

Should the chart be stacked? Default to "FALSE" (dodge)

...

Other arguments to be passed to "simplevis::gg_hbar" or "simplevis:gg_hbar_col"

Value

A horizontal bar chart