I’m getting the error “error in plot.new() : figure margins too large r” when running the program in R. This is an error program
Here is the detail of the error I got
> plot(1:20) Error in plot.new() : figure margins too large >
How to fix it, please give me some advice.
This error happens because of your small plot panel. It is so small that the margins of the plot can not be displayed.
The easiest solution to solve this error is increasing the size of the plot panel in RStudio. Then the same plot() function code need to be runned again.
Remember the size of the Plot Panel is large enough for the margins of the plot.