Skip to main content
Module 5 · Lesson 2 of 210/18 in the course~22 min
Module lessons (2/2)

Multi-Panel Themes, Labels and Facets

Lesson preview7 hands-on exercises readyCourse R · Module 5 — Viewing with ggplot2

Refine charts for publication with labs(), scales, minimal themes, and paneling with facet_wrap().

What you'll learn in this lesson

  • Make graphs self-explanatory with titles, subtitles, captions, and axis labels using labs().
  • Apply clean, publish-ready themes (theme_minimal(), theme_bw(), theme_classic()).
  • Compare subgroups in small, coherent panels (small multiples) with facet_wrap().
  • Improve the readability of long categorical labels by rotating the axes with coord_flip().

Overview

An exploratory graph serves you as you analyze the data; an editorial quality graphic must instead speak clearly to those who do not know the dataset. The strength of ggplot2 lies in being able to refine text, layout, themes and grids without rewriting the data or geometries.

With labs() you set the title (title), subtitle (subtitle), axis description (x, y), legend title (color, fill) and data source (caption). With theme_minimal() or theme_classic() you eliminate the default gray background by increasing the contrast.

Sections covered in this lesson

  1. 1Information labels with labs() and ready-made themes
  2. 2Test yourself: guided exercises
  3. 3Concept check
Pro Lesson · Module 5 — Viewing with ggplot2

Unlock "Multi-Panel Themes, Labels and Facets" and the full Course R curriculum

Refine charts for publication with labs(), scales, minimal themes, and paneling with facet_wrap().

Unlock all 7 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Course R plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.