When creating a plot in RStudio I cannot add subsequent points, lines or legends. Here is a snip of some very simple code which is throwing up the error "Graphics error: plot file error" when I try and run line 5 onwards i.e. when trying to add points and a legend to the plot.
I have replicated the code in base R and it creates the plot correctly, so this must be an error in the R Studio GUI.
Does anyone have any ideas how to resolve this?
I am using RStudio version 1.1.453 with no packages loaded.
Many thanks in advance,