get plot title over two lines R code example
Example: get plot title over two lines R
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
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