Use the mtcars dataset, provided by base R to plot 3 scatter plots in the same graph. The three pairs of data are (mpg, drat), (mpg, wt), (mpg, qsec). You can start with the main plot using plot...

Use the mtcars dataset, provided by base R to plot 3 scatter plots in the same graph. The three pairs of data are (mpg, drat), (mpg, wt), (mpg, qsec). You can start with the main plot using plot function (mpg, drat, ...), then add/superimpose the other two plots by points() as follows: 1 plot(mpg, drat, ...) points(mpg, wt, ...) points(mpg, qsec, ...) Make sure the final graph will contain all the data points - you need to set the two arguments xlim and ylim in the plot() function. Use color argument for each pair of data.

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here