Error in plot.new() : figure margins too large | Stack Overflow | Github | Query Bro

Error in plot.new() : figure margins too large | Stack Overflow | Github | Query Bro


Solution:- 
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.

Leave a Comment