bb_axis | R Documentation |
Add axis parameters
bb_axis(bb, ...)
bb_x_axis(bb, ...)
bb_y_axis(bb, ...)
bb |
A |
... |
Arguments defined in https://naver.github.io/billboard.js/demo/. |
A billboard
htmlwidget
object.
stars <- data.frame(
package = c("billboarder", "ggiraph", "officer", "shinyWidgets", "visNetwork"),
stars = c(9, 178, 43, 46, 175)
)
# Add a label to y axis
billboarder() %>%
bb_barchart(data = stars) %>%
bb_axis(y = list(label = list(text = "# of stars", position = "middle")))
# or shorter :
billboarder() %>%
bb_barchart(data = stars) %>%
bb_y_axis(label = list(text = "# of stars", position = "outer-top"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.