A complete guide on how to modify the ggplot2 theme

You can use the ggplot2 theme to change the appearance of your visualization. However, it's hard to know all the elements by heart. Use this app as a quick reference to create your own theme. Just navigate through the elements, click to open the sub-navigation and copy and paste each argument straight into our code.

Hover over the theme elements, click to open the sub-navigation and copy the code.

  • plot
  • panel
  • axis
  • strip
  • legend

ggplot2tor

Handmade tutorials to help you master ggplot2. Each tutorial provides a step-by-step guide that teaches you how to create visualizations that go beyond the basics of ggplot2.

Creator and author

I am an educational scientist and instructional designer with a curiosity for web development and data visualization. Find me on my personal homepage.