Skip to content
Justice Tech School

Multiple Plots

par(mfrow) places several plots in one figure.

Example
par(mfrow = c(1, 2))
plot(1:5, main = "A")
hist(c(1, 2, 2, 3, 3, 3), main = "B")
par(mfrow = c(1, 1))

Exercise

Grid of plots.

par( = c(1, 2))

Quiz Test

What does c(1, 2) mean?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.