How to split the Main title of a plot in 2 or more lines?

后端 未结 3 1086
温柔的废话
温柔的废话 2020-12-13 09:25

Is it possible to split the main title of a plot() in 2 or more lines in R?

Moreover I have a title which consists of many argumenets pasted together



        
3条回答
  •  半阙折子戏
    2020-12-13 09:35

    I had the opposite problem : how to pass from a three line title to a one line title. To solve that, you just add to concatenate your paste vectors as follow:

    plot(1, main=c(paste("X:",1," ","Y:", 2),paste("Z:",3)))
    

提交回复
热议问题