theme_nhsbsa_hc: Theme an NHSBSA highcharter plot

View source: R/theme_nhsbsa.R

theme_nhsbsa_hcR 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 "TT Arial" 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)

  • Add credits (Note: Not working at the moment)

Usage

theme_nhsbsa_hc(family = "TT Arial")

Arguments

family

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

Value

hc_theme object


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