The goal of this lab is give you practice creating plots in R.

Throughout the lab, there are questions that you will need to answer. Please submit your answers to the quiz on Canvas. Make sure to follow the directions to receive credit.

While you will not need to submit any files for this lab. It is recommended that you use an R Script to answer the questions. As with HW 3, part of your work in this lab will be used for HW 4.

Question 1

Load the data sets df1.csv and df2.csv into R and determine the number of observations in each data set.

Question 2

Merged data sets df1.csv and df2.csv by the id variable.

Question 3

Find the mean and variance for x and y.

Question 4

Create a scatter plot between x and y. Are the two variables associated with each other?

Question 5

Create either a heat map, density plot, or contour plot. How many clusters can you identify?