课程: Data Visualization in R with ggplot2
免费学习该课程!
今天就开通帐号,24,700 门业界名师课程任您挑!
Using themes
- [Instructor] So far in this course, you've learned a lot of the ways that you can modify a plot's appearance by modifying the theme. You now know how to change the background, color scheme, axes, scales, labels, legends, and 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 that 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 packages out there that contain even more themes. Let's try applying some themes in R. We use this 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 they're set anyway. We have a white plot background, a gray panel background, white grid lines, salmon…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。