Learn R Programming

billboarder (version 0.2.4)

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.

Examples

Run this code
# NOT RUN {
# Simple line with month names as x labels
billboarder() %>% 
  bb_linechart(data = round(rnorm(12))) %>% 
  bb_categories(categories = month.name)
  
# }

Run the code above in your browser using DataLab