From the course: Data Visualization in R with ggplot2 (2018)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Using themes
From the course: Data Visualization in R with ggplot2 (2018)
Using themes
- [Instructor] Throughout this course, you've learned ways that you can modify a plot's appearance by modifying its theme. You now know how to change the background, color scheme, axes, scales, labels, legends, and many other components. ggplot provides you with a very high level of control over your visualizations. That allows you to make them appear any way that you'd like. But this can also be tedious. Sometimes you don't want to specify every little detail, but just want your visualization to look nice. That's where themes come into play. ggplot includes a few predefined themes that you can apply to your visualizations, and there are other libraries available that contain even more themes. Let's try applying some themes in R. We'll use our same familiar bar graph, but let's rewind to when we first created it. My simple command here didn't specify any colors or attributes, but when I go ahead and run this code, we see that some of those certainly are set. We have a white plot…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.