That code shows other cool things too, like how we added in a new font ("Grand Hotel") for the ggplot title.
We used the {showtext} package for this: font_add_google() loads the font from Google Fonts, and showtext_auto() ensures R applies the font to the plot.