[R] package vars: save plots

Koboltschnig, Rose-Gerd Rose-Gerd.Koboltschnig at joanneum.at
Tue Mar 17 19:18:26 CET 2009


hello,

i use the vars package and would like to save the plots plotted with the
plot method for objects with class attribute varest etc.
so, if 
	library(vars)
	data(Canada)
	var.canada <- VAR(Canada)
then
	plot(var.canada)
produces a plot for every of the four variables. one has to press return
to get the next plot ("waiting to confirm page change... "). it is only
possible to confirm the page change, but not to save the plot - only for
the last one one gets the options "save", "print" ...

also when i call 
	png(file=var.png)
	plot(var.canada)
	dev.off()
i only get the last plot.

how can i save the four plots, not only the last one?

thanks in advance,
rose




More information about the R-help mailing list