Member-only story
I got this error in R Studio, and was simply fixed by making the sidebar bigger by clicking and dragging on its edge from right to left.
For other solutions, see here: https://stackoverflow.com/questions/12766166/error-in-plot-new-figure-margins-too-large-in-r/33923355#33923355