bb_title: Add title to Billboard.js chart

View source: R/bb_utils.R

bb_titleR Documentation

Add title to Billboard.js chart

Description

Add title to Billboard.js chart

Usage

bb_title(bb, text = NULL, padding = NULL, position = "top-center", ...)

Arguments

bb

A billboard htmlwidget object.

text

The chart title.

padding

A named list with top, right, bottom, left values.

position

A string specifying the position of the title.

...

Additional arguments.

Value

A billboard htmlwidget object.

See Also

bb_labs

Examples

billboarder() %>% 
  bb_barchart(data = table(sample(letters, 100, TRUE))) %>% 
  bb_title(text = "Random letters", position = "center")


billboarder documentation built on Sept. 29, 2023, 5:07 p.m.