[R] Re: multiple plots in different windows

Giampiero Salvi giampi at speech.kth.se
Thu Feb 5 18:15:22 CET 2004

Don't need to answer to my previous post: I found the functions in the

     dev.next(which = dev.cur())
     dev.prev(which = dev.cur())
     dev.off(which = dev.cur())
     dev.set(which = dev.next())

Thanks anyway,

On Thu, 5 Feb 2004, Giampiero Salvi wrote:

> Hi all,
> I'd like to generate a number of plots to compare different
> vectors I have stored in a list. To do this I do something like
> (in a linux system):
> for(i in 1:L) {
>  X11()
>  plot(listOfFunctions[[i]])
> }
> First question is: is this the right way to create several plots (in
> different windows) ?
> Second question: what are the corresponding commands for the matlab
> 'figure(n)' to activate a certain figure and 'close(1:n)' to close
> several figures at once?
> Thank you,
> Giampiero

More information about the R-help mailing list