Subtitle

Author

Lennart Klein

Published

August 3, 2023

1 Setup

2 Introduction

2.1 Plot

  • classic ggplot2 example with custom SCL theme
Code
mpg %>%
  ggplot(aes(x = displ, y = hwy)) +
  geom_point(aes(color = class)) +
  geom_smooth(color = scl_colors["logo"]) +
  paletteer::scale_color_paletteer_d("colorblindr::OkabeIto_black") +
  theme_scl() +
  labs(
    title = "Plot Example",
    subtitle = "Plot Subtitle",
    x = "Engine displacement",
    y = "Highway miles per gallon",
    color = "Class",
    caption = "Data: EPA, Graphic: socialchangelab.org"
  )