Data Communication

15:30-17:00

Date

September 18, 2023

View slides in full screen | Run the code yourself

Outline

  • Complete Themes
  • Modify Theme Elements
  • Non-Default Typefaces
  • Set Themes Globally
  • Custom Themes
  • Exercise

Recap

  • apply complete themes via theme_*() and modify theme defaults via theme()
  • change the appearance for all plots with theme_set() and theme_update()
  • {systemfonts} allows to use non-default typefaces and register font variants
  • use the source code of complete themes to create a custom theme
  • add additional arguments to allow for different styles and settings

Exercise

  • Create a corporate or funny custom theme.
    • Make use of an existing complete theme to get started.
    • Pick a non-default font (or multiple) for your theme.
    • Optional: Try working with font variants.
    • Optional: Add other helpful arguments to your theme_* function.
  • Showcase your theme using some example graphics.
    • Save the plots to disk and share them with the group.
    • Did you add some additional arguments? Feel free to share your thoughts on “why” and “how”.


Exercise Template | Solution