- Remove {ggtext} dependency
- Added a Bank identity theme. See
theme_boe_identity()
- Added new Bank identity colour palettes:
- Core:
boe_identity
,boe_brand_main
,boe_brand_secondary
- Shades:
boe_shades_aqua
- Core:
add_hline0()
utility function for strong horizontal rule at "zero"geom_text_boe_identity()
andannotate_boe_identity()
Bank-style wrappers
- Added
gold_holdings
andsovereign_defaults
example datasets label_year_short()
for formatting year labels as specified in new identity guidelineslabel_euro()
for formatting euro currency labelsscale_x|y_year()
for formatting year labels withlabel_year_short()
- Fix linux machine installation issues (#1308)
- Renamed existing labeller functions to match {scales} package API
- More unit testing for breaks, labelling and scales
- Rationalised documentation pages in a few places
- Tweaks to axis text margins in
theme_fsr()
andtheme_mpr()
- Edited
base_colour
intheme_fsr()
,theme_mpr()
andtheme_overground()
- Edited caption justification in
theme_overground()
- Added
install_rttf2pt1()
to install specific version of {rttf2pt1} that supports custom font import
- Remove
ggplotify
dependency
- Removed
theme_inflation_report()
- Added
position_voronoi()
to support direct line labelling (based on this outstanding ggplot2 issue) - Added
theme_fsr()
andfsr_palettes
for FSR-style charts - Added
caption_boe()
for formatting data sources and footnotes in chart captions - Added markdown variants for each {boeCharts} theme
theme_xxx_md()
to support markdown formatting
- Demoted
grid
,gtable
andggplotify
dependencies to "Suggests" (from "Imports"), addggtext
andglue
imports
- Simple patch to use
ggplotify
instead ofpatchwork
to convert agtable
object to aggplot
object inmove_ylab()
function
- Simple patch to add names to all
pre_mpc
colours
- Simple patch to add font import helpers (
import_arial|calibri()
)
plot_title_position
argument introduced to all themes (following introduction ofplot.title.position
inggplot2
3.3.0 update), titles now fixed left ("plot") by defaulttheme_overground()
:- Base font size (
base_size
) 11.5 (was 18),plot_title_size
now 18 (was 28),subtitle_size
now 14 (was 22) legend_position
now "top" (was "bottom")- Margin arguments removed (bar
plot_margin
andlegend_margin
, which are now sized relatively)
- Base font size (
theme_mpr|inflation_report()
(h/t to Adam Brinley Codd for suggestions):- All text elements in Calibri font by default, and resized to be in-line with
theme_overground()
- Title, subtitle and caption left-justified by default
- Legend position top-left of plot area (and left-justified)
x
andy
labels are not removed by default
- All text elements in Calibri font by default, and resized to be in-line with
theme_mcg_pub()
:- All text elements resized to be in-line with
theme_overground()
- All text elements resized to be in-line with
- Added axis breaks/limits helper functions for numeric (
boe_breaks|limits_numeric()
) and date/time (boe_breaks_limits_date()
) variables - Added font import utilities (
import_arial|calibri()
) and aliases for commonly used fonts (font_arial|calibri|calibri_light
) across all OS' and devices (inc. PDF) - Added
move_ylab()
, allows y-axis title to be positioned above the axis line and plot area - Added pre-MPC colour palettes,
pre_mpc
andpre_mpc_light
- Added all parameters in
theme_overground()
totheme_mpr|inflation_report|mcg_pub()
- Deprecated
theme_inflation_report()
in favour oftheme_mpr()
- System library installation of
Rttf2pt1
handled (reasoning explained in this note) - Deprecated
left_align_titles()
in favour of settingplot_title_position
argument in custom theme functions
- Palettes now follow a standardised, lower snake-case naming convention (e.g.
boe_rich
instead ofboeRich
) everywhere. scale_[colour|fill]_discrete_boe()
is the new name(s) of the function(s) previously known asscale_colour|fill_boe()
. The original functions will throw warnings, directing you to the new functions (but will throw errrors in future versions).boe
(2016 visual identity guidelines) palette has been reordered for more visual distinctiveness.
- Implementation of harmonious/vibrant colour combinations as supported palettes. See
boe_harmonious_palettes
andboe_vibrant_palettes
. - Diverging, ColorBrewer-style palettes. See
boe_diverging_palettes
. - Continuous
ggplot2
-supported scales which play nicely with any palette but particularly the harmonious and diverging ones. Seescale_[colour|fill]_continuous_boe()
. - A Bank Overground theme. See
theme_overground()
. Note: auto Calibri font-handling is currently Windows-only. left_align_titles()
for forcing titles to left of chart area.update_geom_font_defaults()
for updating font defaults for text geoms.palette_names()
for returning names of available palettes.show_colour_swatches()
for displaying a PDF with colours and names of palettes.colours_from_palette()
for extracting HEX values for a given palette.
- All palettes stored as lists, now support semantic colour picking e.g.
boe$red
. - Palettes stored in "lists of lists" (e.g.
boe_harmonious_palettes
), allowing for semantic subsetting of palette options. - Pass palette name as a string (
“boe_rich”
) or the palette itself (boe_rich
orboe_palettes$boe_rich
) into scales, functions, etc. - Pretty-printing s3 methods for palettes.
- First release. Codebase built from
boeThemes
anddsdthemes
.