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

Tutorials, educational apps, cheat sheets and courses for you to master ggplot2

Creator and author

I am an Instructional Designer and a former educational scientist with a curiosity for web development and data visualization. Find me on my personal homepage or LinkedIn.