Check out example codes for "change how many plots you view r". It will help you in understanding the concepts better.

Code Example 1

par(mfrow=c(2,2))

Learn ReactJs, React Native from akashmittal.com