Skip to content
Prev 174024 / 398502 Next

package vars: save plots

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