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
Get step-by-step solutions from verified subject matter experts
