From the course: R Essential Training: Wrangling and Visualizing Data

Unlock the full course today

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

Creating scatterplots

Creating scatterplots

From the course: R Essential Training: Wrangling and Visualizing Data

Start my 1-month free trial

Creating scatterplots

- [Instructor] Univariate analysis or looking at one variable at a time, are critical, they're informative, and they can be interesting, but really where things get exciting are when you look at associations between variables. And one of the most basic ways to do that is with Scatterplots or ways of showing the relationship between two quantitative variables. Those are really easy to do in R and we have both QPLOT and GGPLOT versions to demonstrate here. I'm going to start by installing a few packages, that's Pac-Man and then the tidy verse and so on. Let's come down here. Now, let's start by doing a basic Scatterplot and for this, I'm going to be using the Iris dataset. We're going to look at the association between two of the measurements, the Petal Width and the Petal Length for the three species of viruses. We're going to do a basic version, I call QPLOT. Then I tell the first variable, the second variable, then…

Contents