Remove spacing around plotting area in r

前端 未结 2 972
既然无缘
既然无缘 2020-12-13 00:28

When I create the following plot I get unwanted space between the plotting area and the axis (i.e. the white space between the blue box and the x axis. How can I remove this

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-13 01:08

    plot(c(1,2.75),c(1,2.75),type="n",main="title",xlab="site.x",ylab="ylab",axes=F) # ann
    axis(1,pos=1)
    axis(2,pos=1)
    

    All axes are remove then you can add new axes to the pos you want.

提交回复
热议问题