Learn R Programming

billboarder (version 0.2.4)

set_theme: Set theme for Billboard charts

Description

Set theme for Billboard charts

Usage

set_theme(name = c("billboard", "insight"))

Arguments

name

Name of the theme, possible values are : "billboard", "insight".

Examples

Run this code
# NOT RUN {
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)")
# }

Run the code above in your browser using DataLab