Set theme and default colors for Billboard charts
Set theme and default colors for Billboard charts
set_theme(name = c("billboard", "insight", "graph", "datalab")) set_color_palette(colors)
name |
Name of the theme, possible values are : |
colors |
Vector of colors to use as default. |
You can only use one theme and palette at a time (in Shiny applications or Markdown documents).
library("billboarder") set_theme("insight") data("prod_par_filiere") billboarder() %>% bb_barchart( data = prod_par_filiere[, c("annee", "prod_hydraulique", "prod_eolien", "prod_solaire")] ) %>% bb_data( names = list(prod_hydraulique = "Hydraulic", prod_eolien = "Wind", prod_solaire = "Solar") ) %>% bb_y_grid(show = TRUE) %>% bb_y_axis(tick = list(format = suffix("TWh")), label = list(text = "production (in terawatt-hours)", position = "outer-top")) %>% bb_legend(position = "inset", inset = list(anchor = "top-right")) %>% bb_labs(title = "Renewable energy production", caption = "Data source: RTE (https://opendata.rte-france.com)")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.