bb_categories: Set categories on X axis

View source: R/bb_helpers.R

bb_categoriesR Documentation

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)
  

dreamRs/billboarder documentation built on Feb. 26, 2024, 1:17 p.m.