Package: BFHtheme 0.5.2

Johan Reventlow

BFHtheme: BFH Theme and Color Palettes for ggplot2

Provides comprehensive theming support for ggplot2 graphics following Bispebjerg og Frederiksberg Hospital and Region Hovedstaden visual identity guidelines. Includes color palettes for both Hospital and Region H branding, themes, scale functions, and helper utilities for creating consistent and professional visualizations. Uses modern 'systemfonts' package for robust font detection with graceful fallback. Recommends 'ragg', 'svglite', and Cairo devices for high-quality output.

Authors:Johan Reventlow [aut, cre]

BFHtheme_0.5.2.tar.gz
BFHtheme_0.5.2.zip(r-4.7-any)BFHtheme_0.5.2.zip(r-4.6-any)BFHtheme_0.5.2.zip(r-4.5-any)
BFHtheme_0.5.2.tgz(r-4.6-any)BFHtheme_0.5.2.tgz(r-4.5-any)
BFHtheme_0.5.2.tar.gz(r-4.7-any)BFHtheme_0.5.2.tar.gz(r-4.6-any)
BFHtheme_0.5.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
BFHtheme/json (API)

# Install 'BFHtheme' in R:
install.packages('BFHtheme', repos = c('https://johanreventlow.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/johanreventlow/bfhtheme/issues

On CRAN:

Conda:

5.86 score 1 packages 29 scripts 34 exports 25 dependencies

Last updated from:46861275af. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK153
source / vignettesOK196
linux-release-x86_64OK165
macos-release-arm64OK136
macos-oldrel-arm64OK88
windows-develOK108
windows-releaseOK117
windows-oldrelOK97
wasm-releaseOK146

Exports:add_bfh_footeradd_bfh_logobfh_colorsbfh_colsbfh_combine_plotsbfh_labsbfh_palbfh_palettesbfh_savebfh_title_blockget_bfh_fontget_bfh_logoreset_bfh_defaultsscale_color_bfhscale_color_bfh_continuousscale_color_bfh_discretescale_colour_bfhscale_colour_bfh_continuousscale_colour_bfh_discretescale_fill_bfhscale_fill_bfh_continuousscale_fill_bfh_discretescale_x_continuous_bfhscale_x_date_bfhscale_x_datetime_bfhscale_x_discrete_bfhscale_y_continuous_bfhscale_y_date_bfhscale_y_datetime_bfhscale_y_discrete_bfhset_bfh_defaultsshow_bfh_palettestheme_bfhuse_bfh_knitr_defaults

Dependencies:base64encclicpp11farverggplot2gluegtableisobandjpegjsonlitelabelinglifecyclemarqueepngR6RColorBrewerrlangS7scalesstringisystemfontstextshapingvctrsviridisLitewithr

Fejlfinding for BFHtheme
Introduktion | Installation fejler | Fejl i farveskalaer | "need at least two non-NA values to interpolate" | Farver virker forkerte | Logo relaterede problemer | "BFH logo file not found" | Logoet er i dårlig kvalitet | Logoet dækker data | Tema relaterede problemer | Tekst rendrer ikke korrekt | Temaet ser ikke ud til at være anvendt | Få hjælp

Last update: 2026-04-24
Started: 2025-10-14

Logoer og Branding i BFHtheme
Introduktion | Logo-varianter og størrelser | Grundlæggende brug | Vælg logo-variant og opløsning | Gennemsigtighed | Kombinér logo og footer | Find tilgængelige logofiler | Scenarier | Opt-in knitr-opsætning | Fejlfinding

Last update: 2026-04-24
Started: 2025-10-14

Advanced Customization
Introduction | Theme Customization | Modifying Base Theme Parameters | Overriding Theme Elements | Legend Customisation | Colour Palette Customisation | Using Different Palettes | Reversing Palettes | Creating Custom Palettes | Working with Colour Functions | Plot Enhancements | Adding BFH Branding | Multi-Panel Figures | Axis Customisation | Formatting Axes | Date Axes | Text and Labels | Uppercase Labels | Uppercase Axis Tick Labels | Advanced: Integration with scales Package | Best Practice: label_date_short() for Space Efficiency | Custom Text Elements | Faceting | Facet Customisation | Export and File Formats | High-Resolution Export | Dimension Presets | Performance Optimisation | Font Caching | Large Datasets | Wrap-Up

Last update: 2026-04-22
Started: 2025-10-14

Farvepaletter i BFHtheme
Introduktion | Officielle farver | Hospital (BFH) | Region Hovedstaden | Palettekategorier | Hospitalspaletter | Legacy og kompatibilitet | Anvendelse i ggplot2 | Udforskning | Reference og metadata

Last update: 2026-04-22
Started: 2025-10-14

Multi-Hospital Branding
Introduction | Organisational Colour Palettes | Bispebjerg og Frederiksberg Hospital | Region Hovedstaden | Sequential Palettes | Hospital Sequential Palettes | Region H Sequential Palettes | Infographic Palettes | Hospital Infographic Palette | Region H Infographic Palette | Combining Organisational Branding | Consistent Theme with Different Palettes | Setting Default Palette | Colour Accessibility | Contrast and Readability | Colourblind Considerations | Customising for Specific Departments | Department-Specific Colours | Multi-Site Comparisons | Comparing Data Across Sites | Brand Guidelines Reference | Hospital Colours | Region Hovedstaden Colours | Usage Guidelines | When to Use Hospital vs Region H Branding | Consistency Best Practices | Next Steps

Last update: 2026-04-22
Started: 2025-10-14

Getting Started with BFHtheme
Introduction | Installation | Basic Usage | Applying a Theme | Using Colour Scales | Available Colour Palettes | Theme Variants | Standard Theme | Customizing theme_bfh() | Setting Global Defaults | Saving Plots | Font Configuration | Where to Next

Last update: 2025-11-13
Started: 2025-10-14

Fonts and Typography in BFHtheme
Introduktion | Font-prioritering | Automatisk fontvalg | Manuel styring | Tjek tilgængelige fonts | Mari Office font | Roboto (open source) | Manuel installation | Helper til installation | Typografiske workflows | Automatisk (anbefalet) | Med showtext (Roboto fallback) | Fast global font

Last update: 2025-10-14
Started: 2025-10-14

Readme and manuals

Help Manual

Help pageTopics
Add BFH Footer to a Plotadd_bfh_footer
Add BFH Logo to a Plotadd_bfh_logo
BFH Brand Color Definitionsbfh_colors
Extract BFH Colorsbfh_cols
Create a Multi-Panel Figure with Shared Legendbfh_combine_plots
BFH-Style Plot Labels with Automatic Uppercasebfh_labs
Interpolate a BFH Color Palettebfh_pal
BFH Color Palettes (Named List)bfh_palettes
Save a Plot with BFH Specificationsbfh_save
Create a Branded Title Blockbfh_title_block
Determine BFH Font Familyget_bfh_font
Get Path to the Packaged BFH Logoget_bfh_logo
Reset ggplot2 Defaultsreset_bfh_defaults
BFH Colour Scales for ggplot2scale_bfh scale_color_bfh scale_colour_bfh scale_fill_bfh
Continuous colour scales using specific BFH palettesscale_color_bfh_continuous scale_colour_bfh_continuous scale_fill_bfh_continuous
Discrete colour scales using specific BFH palettesscale_color_bfh_discrete scale_colour_bfh_discrete scale_fill_bfh_discrete
BFH Position Scales with Uppercase Labelsscale_position_bfh scale_x_continuous_bfh scale_x_datetime_bfh scale_x_date_bfh scale_x_discrete_bfh scale_y_continuous_bfh scale_y_datetime_bfh scale_y_date_bfh scale_y_discrete_bfh
Set BFH Defaults for ggplot2set_bfh_defaults
Visualise BFH Palettesshow_bfh_palettes
BFH ggplot2 Themetheme_bfh
Enable BFH knitr Defaults (Opt-in)use_bfh_knitr_defaults