bb_categories {billboarder} | R Documentation |
Set categories on X axis
Description
Set or modify x axis labels.
Usage
bb_categories(bb, categories)
Arguments
bb |
A |
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)
[Package billboarder version 0.4.1 Index]