Colour and palettes as defined in the Cube Group Brand guidelines.
The main purpose of cubepalette is to enable Cube Group staff to use the colours and palettes defined in the brand guidelines within R.
cubepalette was created with the palettes package, which provides a
comprehensive library for colour vectors and colour palettes using a new
family of colour classes (palettes_colour
, and palettes_palette
)
that always print as hex codes with colour previews. Colour palette
packages created with palettes have access to the following
capabilities, all without requiring you to write any code: formatting,
casting and coercion, extraction and updating of components, plotting,
colour mixing arithmetic, and colour interpolation.
See the following vignettes to learn how to use cubepalletws with other packages:
- Using palettes with ggplot2
- Using palettes with gt
- Using palettes with biscale
- Compatibility with other colour packages
The cube palettte includes three colours green, orange, grey. These are supported by light and dark shades.
#> Loading required package: palettes
Cube Group’s colour palette uses modern and distinctive tones to convey corporate warmth.
cube.darkgreen
is used in majority, bringing maturity and a
seriousness when needed.
cube.lightorange
adds warmth, livening up layouts and highlighting key
information.
cube.grey
is used as a neutral background colour.
The cube.green
, cube.orange
and cube.white
comprise the secondary
colours
The cube.lightgreen
, cube.darkorange
and cube.black
comprise the
tertiary colours
cube.black
and cube.white
are convenience names for black
and
white
that allow for consistent syntax when using the cubepalette.
You can install the development version of cubepalette from GitHub with:
# install.packages("devtools")
devtools::install_github("zerogetsamgow/cubepalette")
library(cubepalette)
cubepalette comes with a set of 4 discrete colour palettes, and 5 sequential colour palettes, which can be accessed from the following R objects:
cube_palettes_discrete
for discrete palettescube_palettes_tints
for sequential palettescube_palettes
for all palettes
Discrete palettes for use with various backgrounds are available.
dark
, light
and other
have been compiled to work on backgrounds
composed of colours from the Cube Group brand guideline.
plot(cube_palettes_discrete)
For long form documents infographics and charts, tints from the Cube
Group colour palette can be used in 20 per cent increments.
cube_palettes_tints
is populated with compliant greens
, oraness
and greys
.
A broader palette - darkoranges
- is included for greater
variation/increments where required.
plot(cube_palettes_tints)
Palettes can be subset using [
, [[
, and $
.
-
To extract one or more palettes use
[
:plot(cube_palettes_tints[c("greens", "greys")])
-
To extract a single palette as a colour vector use
[[
or$
:plot(cube_palettes_tints[["oranges"]])
plot(cube_palettes_tints$darkoranges)
-
To get names of palettes use
names()
:names(cube_palettes_tints) #> [1] "greens" "oranges" "darkoranges" "pinks" #> [5] "greys"
cubepalette
includes a colour cube.pink
that is deprecated.
cube.lightorange
is the preferred name for this colour.
See also documentation for the palettes package at
https://mccarthy-m-g.github.io/palettes/
or in the installed package: help(package = "palettes")
.