Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi! could someone help me with these Rstudio lab problems plz? Thx! ## Problem 1 (Verzani problem 5.1) *For the `UScereal` (**MASS**) data set, create
Hi! could someone help me with these Rstudio lab problems plz? Thx!
## Problem 1 (Verzani problem 5.1) *For the `UScereal` (**MASS**) data set, create a scatter plot of `calories` modeled by `sugars` using the `shelf` variable to create different plot characters. Add a legend to indicate the shelf number. Is there any patterns? (Use base R plotting for this problem.)* ```{r, tidy=TRUE, error=TRUE} # Your code here ``` ## Problem 2 (Verzani problem 5.3) *For the data set `UScereal` (**MASS**) make a pairs plot of the numeric variables. Which correlation looks larger: fat and calories or fat and sugars?* ```{r, tidy=TRUE, error=TRUE} # Your code here ``` ## Problem 3 (Verzani problem 5.4) *For the data set `batting` (**UsingR**) make a bubble plot of home runs hit (`HR`) modeled by hits (`H`) where the scale factor for each point is given by `sqrt(SO)/10`. Is there any story to be told by the size of the points? (You must use base R plotting for this problem.)* ```{r, tidy=TRUE, error=TRUE} # Your code here ```
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started