Course Content

Course Content


ggplot2 includes a number of pre-installed themes. The most important is theme grey(), which is ggplot2's distinctive theme with a light grey backdrop and white gridlines. Following the guidance of, the theme is aimed to put the data forward while supporting comparisons.

  • Look for a bundle that fits your theme. is a good place to start.
  • Give your theme function a name and start working on it.
  • Figure out how you want your theme to look.
  • Fine-tune your theme's settings.
  • Make your theme public.

Each of these three items has its own function for modifying them: element line() is used to change the theme's line elements. To change the text elements, use element text(). To modify the appearance of rectangle elements, use element rect().

ggplot2 comes with two pre-installed themes: The default theme, with a grey backdrop, is theme grey(). theme bw() is a white-background theme.

Themes classic(), theme minimal(), and theme bw are among the best ggplot themes for professional publications or presentations (). The dark theme (theme dark) is another well-known theme (). Use the ggthemes R library to get more useful ggplot2 theme examples.

Share With Friend

Have a friend to whom you would want to share this course?

Download LearnVern App

App Preview Image
App QR Code Image
Code Scan or Download the app
Google Play Store
Apple App Store
598K+ Downloads
App Download Section Circle 1
4.57 Avg. Ratings
App Download Section Circle 2
15K+ Reviews
App Download Section Circle 3
  • Learn anywhere on the go
  • Get regular updates about your enrolled or new courses
  • Share content with your friends
  • Evaluate your progress through practice tests
  • No internet connection needed
  • Enroll for the webinar and join at the time of the webinar from anywhere