SyntaxFix
Write A Post
Hire A Developer
Questions
Just run graphics.off() before plotting your data. This instruction solved my error. So, it's harmless to try it before taking a more complex solution.
graphics.off()