Error in plot.new() : figure margins too large, Scatter plot

后端 未结 7 1910
囚心锁ツ
囚心锁ツ 2020-11-29 16:26

I\'ve looked in different questions for a solution and I\'ve tried what was suggested but I have not found a solution to make it work.

Everytime I want to run this c

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 16:44

    Every time you are creating plots you might get this error - "Error in plot.new() : figure margins too large". To avoid such errors you can first check par("mar") output. You should be getting:

    [1] 5.1 4.1 4.1 2.1
    

    To change that write:

    par(mar=c(1,1,1,1))
    

    This should rectify the error. Or else you can change the values accordingly.

    Hope this works for you.

提交回复
热议问题