Complete Themes: Quickly Change the Style of Your Plots
Themes control the overall style of your plots — from typefaces and font settings to grid lines, backgrounds, and margins. They’re what make a chart feel clean, polished, and consistent.
In this lesson, you’ll learn how to apply and adjust complete themes to give your plots a cohesive look without touching the underlying data or mappings. By the end, you’ll know how to switch between built-in themes, customize them, and make your charts presentation-ready with just a few lines of code.
👗 Change Your Style
Back in the principles lesson, we introduced themes as one of the main ggplot2 components. Unlike aesthetics, layers, scales, or coordinate systems, themes don’t affect what data is shown or how it’s mapped.
Themes are a different kind of component: they act as the “finishing layer” of your visualization and focus entirely on styling and presentation. Typefaces, font styles, legends, backgrounds, grid lines, margins — all of these can be controlled with themes to make your charts look clean and polished without touching the underlying data.
We saved themes for this Customization & Styling module on purpose: once you’re comfortable building plots from data, themes let you give them a cohesive look to make it publication-ready — simply swap a complete theme and or nudge a few elements to add a custom and personal touch.
🎨 Themes at a Glance
The fastest way to style your plot is by applying a complete theme .
A theme is simply a pre-built set of settings that control everything—from background colors and grid lines to text and spacing. With just one extra line of code, you get a clean, consistent style to build on.
Here’s an example using the minimal theme:
Note: By default, every ggplot starts with the complete theme theme_grey(), which adds the classic “corporate grey” look. That’s a solid baseline — but it can feel a bit… well, ggplot-y.
World of Themes
ggplot2 📦 comes with a set of complete themes to cover common needs.
Beyond that, the community has created packages with additional ready-to-use themes, such as ggthemes, hrbrthemes, and tvthemes.
Some replicate the visual styles of well-known companies, newspapers, or software, while others take a more playful approach—referencing popular TV shows and other bits of pop culture.
As always, here’s a little explorer to see if you can find a theme you like!
Ready to enroll? 🚀
Enroll now to unlock instant, lifetime access to every lesson, and become the ggplot2 expert your company needs!
Already enrolled? Login