Skip to contents

Last updated: 2023-02-08

Credit to BBC data team

This package has been copied from the much better BBC bbplot, and reapplied to work for creating graphics in a DLUHC style. Credit must go to the BBC data team for their fantastic product which the team at DLUHC have essentially copied for our own use.

Install the dluhctheme package

dluhctheme is not on CRAN, so you will have to install it directly from Github using devtools.

If you do not have the devtools package installed, you will have to run the first line in the code below as well.

# install.packages('devtools')
devtools::install_github('communitiesuk/dluhctheme')

For more info on dluhctheme check out the package’s Github repo, but most of the details about how to use the package and its functions are detailed below.

When you have downloaded the package and successfully installed it you are good to go and create charts.

How does the dluctheme package work?

The package has two types of functions;

These functions allow you to create a data visualization in a set theme instantly but are more fixed in some of their formatting. Examples of these functions can all be found in the “Reference” tab at the top of this page