Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bb_categories

Set categories on X axis


Description

Set or modify x axis labels.

Usage

bb_categories(bb, categories)

Arguments

bb

A billboard htmlwidget object.

categories

A character vector to set names on a category axis.

Value

A billboard htmlwidget object.

Note

This function can be used with billboarder-shiny to modify labels on axis, e.g. for barcharts.

Examples

# Simple line with month names as x labels
billboarder() %>% 
  bb_linechart(data = round(rnorm(12))) %>% 
  bb_categories(categories = month.name)

billboarder

Create Interactive Chart with the JavaScript 'Billboard' Library

v0.3.1
MIT + file LICENSE
Authors
Victor Perrier [aut, cre], Fanny Meyer [aut], NAVER Corp [cph] (billboard.js library), Mike Bostock [cph] (d3.format library)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.