Question: Questions 1 and 2 please. CODE IN R NOT PYTHON Question 1: Import the built-in data set USArrests. (a) Create a pairwise scatter plot of
Questions 1 and 2 please. CODE IN R NOT PYTHON

Question 1: Import the built-in data set "USArrests". (a) Create a pairwise scatter plot of all the variables in the data set. (b) Which two variables have the most obvious linear relationship? Create a separate scatter plot of those two variables. (c) Fit a simple linear regression model to the data in the scatter plot from part (b). Plot the regression line on the scatter plot from part (b) in red. Question 2: Import the built-in data set "ToothGrowth". (a) Create a table for "len" and graph a pie chart of it. (b) Aggregate "len" based on "dose" using the mean function. Create a dot chart and bar plot of the data. (c) Use ggplot2 tools to create a box plot of "len" for each of the "supp" categories; that is, for each category of "supp", make a box plot of "len
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
