Making a Scatterplot

We dive into making a slightly more complex chart: a scatter plot. In this lesson, we talk about why you would create a scatter plot and its basic anatomy.

This lesson preview is part of the Fullstack D3 Masterclass course and can be unlocked immediately with a single-time purchase. Already have access to this course? Log in here.

This video is available to students only
Unlock This Course

Get unlimited access to Fullstack D3 Masterclass with a single-time purchase.

Thumbnail for the \newline course Fullstack D3 Masterclass
  • [00:00 - 00:07] All right, so we've already created our first chart. So in this lesson, we're going to make another chart, but it's a little bit more complicated.

    [00:08 - 00:17] And as we go through it, we're going to go a little bit more in depth into each of those steps. So we have this massive weather data set, and there's so many questions we can ask it.

    [00:18 - 00:25] And a lot of those questions have to do with the correlations between different metrics. So in this lesson, we're going to focus on two metrics.

    [00:26 - 00:35] One is the dewpoint, so it's the highest temperature at which dew droplets form . And the other is the humidity, which is the amount of water vapor in the air.

    [00:36 - 00:45] And it's nice to go in with the hypothesis. So at first glance, I would guess that they would be positively correlated.

    [00:46 - 00:58] So a higher dewpoint would correlate with a higher humidity, but we'll see as we go along. So in order to investigate this, we're going to create a scatter plot.

    [00:59 - 01:15] So in our scatter plot, we're going to have one metric on the horizontal x-axis and another metric on the vertical y-axis. And then each data point, so in this case, each day, will be plotted within those two bounds.

    [01:16 - 01:27] And at the end of this lesson, we'll have the chart and we'll be able to look at it and see how we can, further develop our understanding of the relationship between these two metrics . tricks.