Skip to contents

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)