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
From the course: R Essential Training: Wrangling and Visualizing Data
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Introduction to ggplot24m 39s
-
(Locked)
Using colors in R5m 3s
-
(Locked)
Using color palettes8m 5s
-
(Locked)
Creating bar charts9m 22s
-
(Locked)
Creating histograms5m 30s
-
(Locked)
Creating box plots5m 24s
-
(Locked)
Creating scatterplots5m 58s
-
(Locked)
Creating multiple graphs4m 6s
-
(Locked)
Creating cluster charts8m 34s
-
-
-
-