Question: For all the problems below, we need to use an in-built dataset called mtcars. It can be accessed by simply typing mtcars, and its information

For all the problems below, we need to use an in-built dataset called mtcars. It can be accessed by simply typing mtcars, and its information can be found in the R Help document. (Of course, you don't need to understand the meaning of the variables. It is unrelated.) 1. Create a scatter plot, by using the plot function to plot the car weight (i.e. mtcars$wt) against the miles per gallon (i.e. mtcars$mpg). This means that mpg is on the horizontal axis and wt is on the vertical axis. Requirements: (i) Use the pch argument to choose whatever symbol you like and then set the color of the symbol to red. (ii) Set the label of the horizontal axis to "Miles per gallon" and that of the vertical axis to "Weight (1000 lbs)"
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
