I am new to R and RStudio so I was hoping someone here could help me.
I’m trying to add to plots in R Markdown (e.g. abline(), rug(), etc…) but whenever I try to execute these commands, I get the error message: plot.new() has not been called. Obviously, I looked up plot.new() and tried to call it and frame() but I still get the same error message. For whatever reason, I can execute these commands in script (on the console) but it only seems to be an issue in Markdown.
Has anyone else experienced similar issues or know how to resolve this? I’ve already unstalled and reinstalled both R and RStudio but to no avail.
Thank you in advance.