I am trying to plot a chart but get this error only the first time I try to plot it which is weird.
w <- gwindow(title="Plots")
g=ggraphics(cont=w,visible=FALSE)
plot(x,y,xlab = "Period",ylab = "Scores",main = "Results",type = "l")
visible(w) <- TRUE
Now I get the subject line error. If I again run the plot(), I see the plot in the window. How can I avoid this. Thanks.