theme_nhsbsa_highchart: Theme an NHSBSA highcharter plot

View source: R/theme_nhsbsa.R

theme_nhsbsa_highchartR Documentation

Theme an NHSBSA highcharter plot

Description

Theme an NHSBSA highcharter plot. We would like to take several steps to brand a standard highcharter plot to an NHSBSA looking chart. These include:

  • Make the font of any text "Frutiger W01" or another family parameter.

  • Colour any text NHS Black

  • Colour background NHS White

  • Make the title and axis titles bold

  • Move the legend to the top and set the hover colour to NHS Mid Grey

  • Colour axis ticks and lines NHS Mid Grey

  • Remove yaxis gridlines (x axis has no gridlines by default)

Usage

theme_nhsbsa_highchart(
  .hc,
  palette = NA,
  stack = "normal",
  family = "Frutiger W01"
)

Arguments

.hc

highchart object to be styled

palette

Which colour palette to use from the nhsbsaR package.

stack

Stack option for highcharter.

family

String font family to use (this must be installed and loaded). Default value is "Frutiger W01"

Value

highchart object with theme styling applied


nhsbsa-data-analytics/nhsbsaR documentation built on Jan. 25, 2025, 8:54 a.m.