Adjust plot title (main) position

前端 未结 3 1461
眼角桃花
眼角桃花 2020-12-02 18:18

I have been unable to find a way to adjust the (vertical) distance between plot and main title in R using par. In this example:

plot(1, 1, main = \"Title\")
         


        
3条回答
  •  清歌不尽
    2020-12-02 18:49

    We can use title() function with negative line value to bring down the title.

    See this example:

    plot(1, 1)
    title("Title", line = -2)
    

    enter image description here

提交回复
热议问题