1 min read

billboards.js in R Markdown

The JavaScript chart library billboards.js (https://naver.github.io/billboard.js/) was implemented in an R package called billboarder (https://github.com/dreamRs/billboarder).

Let’s try it out.

library(billboarder)
## Warning: Paket 'billboarder' wurde unter R Version 3.5.1 erstellt

Scatter Plot

billboarder() %>% 
 bb_scatterplot(data = iris, x = "Sepal.Length", y = "Sepal.Width", group = "Species") %>% 
 bb_axis(x = list(tick = list(fit = FALSE))) %>% 
 bb_point(r = 8)

Figure 1: Scatter Plot