September 2018
Beginner
206 pages
4h 27m
English
One neat feature in R is that you can plot more than one plot at a time on the same viewing window. Inside of par(), if we pass mfrow = c(rows, cols), where rows is the number of rows of plots you'd like and cols is the number of columns of plots you'd like, you can plot a number of plots on the same screen. If we return to the mtcars_lm() example we just covered, we can plot all four model diagnostic plots in the same window by first running the following line of code:
par(mfrow = c(2,2))
Next, you need to execute the following code:
plot(mtcars_lm)

This resets your Global Options in RStudio. So now, ...
Read now
Unlock full access