https://researchdatapod.com/how-to-solve-r-error-plot-new-has-not-been-called-yet/
How to Solve R Error: plot.new has not been called yet