Fix error with "Error in plot.new() : figure margins too large" with resize windows()