Quadstat Output - How to Create a Plot

Submitted by Anonymous (not verified) on May 12, 2019 - 6:30 PM

How To Create a Scatterplot (Bivariate Plot)

To create a scatterplot, we must gather all the observations from the independent variable X.alcohol. and then plot them against the dependent variable X.deaths. We will match an each observation from the independent variable with its corresponding value from the dependent observations.

First, let us list the observations in column X.alcohol. The first ten observations include: 2.5, 3.90000009536743, 2.90000009536743, 2.40000009536743, 2.90000009536743, 0.800000011920929, 9.10000038146973, 0.800000011920929, 0.699999988079071, 0.600000023841858.

Now, let us list the observations in column X.deaths. The first ten observations include: 785, 863, 883, 793, 971, 970, 751, 743, 1000, 834.

We can also plot empty x- and y-axes which we will use as a foundation for our scatterplot. The scatterplot created immediately below will accommodate the Uniform(-10,10) distribution. If you are using a different dataset, you will use different scales for the axes. Our finished scatterplot will automatically use a scale that is appropriate for the dataset.

To find where on the scatterplot we need to put points, we can use cartesian coordinate pairs to guide us. If the X value is negative, the point will be to the left of 0. If the X value is positive, the scatterplot point will be to the right of 0. Likewise for the Y coordinate: if the Y value is negative, the point will be below 0, and if the Y value is positive, the scatterplot point will be above 0.

The first pair we need to plot is (2.5,785). This tells us to put the first point 2.5 units to the left or right of 0, and also 785 units up or down from 0 following the rules described above.

We do this for each point in the X and Y columns. Your finished product should look something like this.

Image