The par()
function allows to set the
mfrow()
parameters to cut the charting window in
several section.
The par()
function allows to set parameters to the
plot. The mfrow()
parameter allows to split the screen
in several panels. Subsequent charts will be drawn in panels.
You have to provide a vector of length 2 to mfrow()
:
number of rows and number of columns.
Note: mfcol()
does the same job but draws figure
by columns instead of by row.
Alternative: see the layout() function for more complex layout creation.
👋 After crafting hundreds of R charts over 12 years, I've distilled my top 10 tips and tricks. Receive them via email! One insight per day for the next 10 days! 🔥