From the course: Data Visualization in R with ggplot2

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Build your first visualization

Build your first visualization

From the course: Data Visualization in R with ggplot2

Start my 1-month free trial

Build your first visualization

- [Instructor] Now that we're able to load some data into R from a CSV file, we can begin to create some simple visualizations. In this video, I'm going to 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 ggplot function simply 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 R studio, with the code already written to load my data set from the web. If you have access to the exercise files for this course, you can load the start file in the directory for this video, and run the same code to load the data set yourself. Once I go ahead and run this, the data set is loaded into R and now I can see over in the environment pane, that the college tibble is loaded into…

Contents