用R画图的时候出了这错,之前用par()画都没出问题,提示的意思是我们画布的边缘太宽了,查了一下R官网给的:
help("par")
不断往下拉就能看到mar
mar
A numerical vector of the form c(bottom, left, top, right) which gives the number of lines of margin to be specified on the four sides of the plot. The default is c(5, 4, 4, 2) + 0.1.
我运行试一下:
par("mar")
既然提示大了我们输入设置一下:
par(mar=c(1,1,1,1))
解决
版权声明:本文为zhou_438原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。