Question: Divide the graph output to 1 row and 2 columns (`par(mfrow=c(2,2))`). Then draw a histogram for the **cal** variable. Title your diagram **Calories Histogram** and

Divide the graph output to 1 row and 2 columns (`par(mfrow=c(2,2))`). Then draw a histogram for the **cal** variable. Title your diagram **"Calories Histogram"** and label the x axis **"Calories"**. Then draw a **QQ Plot** to inspect the normality of this variable (tip: this is a 2 step process; first draw the QQ Plot with the `qqnorm()` function and give it a main title of `"Calories QQ Plot"`).

Also, draw a histogram and a QQ Plot for the **carb** variable. Title the histogram **"Carbs Histogram"** and label the x axis **"Carbs"**. Title the QQ Plot **Carbs QQ Plot"**. Then reset the graph output to 1 row and 1 column.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!