Learn R Programming

billboarder (version 0.5.2)

bb_categories: Set categories on X axis

Description

Set or modify x axis labels.

Usage

bb_categories(bb, categories)

Value

A `billboard` `htmlwidget` object.

Arguments

bb

A `billboard` `htmlwidget` object.

categories

A character vector to set names on a category axis.

Examples

Run this code
# 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