课程: Data Visualization in R with ggplot2

免费学习该课程!

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

Build your first visualization

Build your first visualization

- [Instructor] Now that we have some data loaded into R from a CSV file, we can begin to create some simple visualizations. In this video, I'll walk you through the process of creating a visualization with ggplot, and then in the next chapter, we'll explore different types of visualizations. The ggplot function is the core function that we use to create visualizations. By itself, the function just creates an empty plot, but then we can use the grammar of graphics to add different elements onto that plot, including geometries, aesthetics, mappings, and scales. Here I am in RStudio with the code already written to load my dataset from the web. Now, you can go into the exercise files for this course and load this same start file from the directory for this video and run this code already to load the dataset so you don't need to retype it. Let's go ahead and do that, which gives you my college dataset over in the Environment pane. Now, we have this tibble, let's go ahead and start trying…

内容