Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

bb_grid

Grid property for a Billboard.js chart


Description

Grid property for a Billboard.js chart

Usage

bb_grid(bb, ...)

bb_x_grid(bb, ...)

bb_y_grid(bb, ...)

Arguments

Value

A billboard htmlwidget object.

Note

bb_x_grid and bb_y_grid are shortcut for modifying the x-axis and the y-axis respectively.

Examples

stars <- data.frame(
  package = c("billboarder", "ggiraph", "officer", "shinyWidgets", "visNetwork"),
  stars = c(1, 176, 42, 40, 166)
)

billboarder() %>%
  bb_barchart(data = stars) %>% 
  bb_y_grid(show = TRUE)

billboarder() %>%
  bb_barchart(data = stars) %>% 
  bb_y_grid(lines = list(list(value = mean(stars$stars), text = "Horizontal line")))

billboarder

Create Interactive Chart with the JavaScript 'Billboard' Library

v0.3.1
MIT + file LICENSE
Authors
Victor Perrier [aut, cre], Fanny Meyer [aut], NAVER Corp [cph] (billboard.js library), Mike Bostock [cph] (d3.format library)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.