Dirk is right.
Another thing to pay attention to is the following functions:
x <- recordPlot()
replayPlot(x)
From the R for Windows FAQ:
Graphics has a story engine. As stated in README.R-2.9.2:
"" . , . ( ) ( ). R . R. R.
Windows .
R , RHOME\etc Rconsole Rdevga; . , , . . Rconsole. GUI, Rconsole.