Learn R Programming

billboarder (version 0.5.2)

bb_padding: The padding of the chart element.

Description

The padding of the chart element.

Usage

bb_padding(bb, ...)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A [billboarder()] `htmlwidget` object or a [billboarderProxy()] `htmlwidget` object.

...

See <https://naver.github.io/billboard.js/release/latest/doc/Options.html#.padding> for possible options.

Examples

Run this code
# Add padding around the chart
billboarder() %>%
  bb_barchart(data = table(sample(letters[1:5], 100, TRUE))) %>%
  bb_padding(top = 100, right = 100, bottom = 100, left = 100)

Run the code above in your browser using DataLab