Check out example codes for "get plot title over two lines R". It will help you in understanding the concepts better.

Code Example 1

x <- rnorm(3)
y <- rnorm(3)
plot(x, y, main=paste("X:",1," ","Y:", 2," ","\nZ:",3))

# \n in main= paste() environment produces new line in plot titles

Learn ReactJs, React Native from akashmittal.com