课程: Data Visualization in R with ggplot2

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

Adding titles

Adding titles

- [Instructor] I have a good-looking map here. The last thing I'd like to do before we wrap this up is add a title and subtitle that explain my visualization and provide readers with a source of the data that I used. I can do that using the ggtitle function. At the end of my call to ggplot, I'm going to add ggtitle, and then my title is going to be, Most California Colleges are located in large Cities. And I'll add a subtitle as well with my source, which is the U.S. Department of Education. And there we go. We've built a nice visualization of California colleges and universities using the ggplot library in R.

内容