Re: [R] multiple plots problem

2004-04-01 Thread Philipp Pagel
for testing learning purposes I create X11 device and specify layout like layout(c(1,2,3), 3, 1), so I could play with parameters and see several plots at the same time. That works fine until I try to create 4-th plot - all other plots erased. That's expected behaviour: you asked

Re: [R] multiple plots problem

2004-04-01 Thread Duncan Murdoch
On Thu, 1 Apr 2004 15:38:54 +0400 (MSD), Oleg Bartunov [EMAIL PROTECTED] wrote : Hello, for testing learning purposes I create X11 device and specify layout like layout(c(1,2,3), 3, 1), so I could play with parameters and see several plots at the same time. That works fine until I try to create

Re: [R] multiple plots problem

2004-04-01 Thread Oleg Bartunov
On Thu, 1 Apr 2004, Philipp Pagel wrote: for testing learning purposes I create X11 device and specify layout like layout(c(1,2,3), 3, 1), so I could play with parameters and see several plots at the same time. That works fine until I try to create 4-th plot - all other plots erased.

Re: [R] multiple plots problem

2004-04-01 Thread Oleg Bartunov
On Thu, 1 Apr 2004, Duncan Murdoch wrote: On Thu, 1 Apr 2004 15:38:54 +0400 (MSD), Oleg Bartunov [EMAIL PROTECTED] wrote : Hello, for testing learning purposes I create X11 device and specify layout like layout(c(1,2,3), 3, 1), so I could play with parameters and see several plots at

RE: [R] multiple plots problem

2004-04-01 Thread Hanke, Alex
The command: layout(c(1,2,3), 3, 1) specifies 3 plots Try layout(1:4,2,2,byrow=T) Regards, Alex -Original Message- From: Oleg Bartunov [mailto:[EMAIL PROTECTED] Sent: April 1, 2004 7:39 AM To: R-help Subject: [R] multiple plots problem Hello, for testing learning purposes I create

Re: [R] multiple plots problem

2004-04-01 Thread Angel Lopez
Have you considered using ?split.screen and ?erase.screen with a non-transparent background instead of layout. Example: par(bg = white) # default is likely to be transparent split.screen(c(3,1))# split display into three screens screen(1) plot(1:10) screen(2) plot(2:20) screen(3)

Re: [R] multiple plots problem

2004-04-01 Thread Oleg Bartunov
interesting, it works, but still need to explicitly specify screen number. It'b be nice to have tabbed canvas, but I suspect it's wrong list. Oleg On Thu, 1 Apr 2004, Angel Lopez wrote: Have you considered using ?split.screen and ?erase.screen with a non-transparent background

Re: [R] multiple plots problem

2004-04-01 Thread Angel Lopez
Depends on what you understand by _explicitly_ specify screen number: par(bg = white) # default is likely to be transparent screenlist-split.screen(c(3,1))# split display into three i-screenlist[1] # Create a function to simulate the tabbing nextplot-function(i) { i-i+1 if

Re: [R] multiple plots problem

2004-04-01 Thread Oleg Bartunov
Angel, thanks for example, but I think you don't understand me - I was looking native way to say R, please, don't erase canvas. Any emulations required additional typing (so many in R! - readline is great, but no support for prefix search as in bash)) and some attention (don't forget to type

RE: [R] multiple plots problem

2004-04-01 Thread Hanke, Alex
Correction: I should have wrote layout(matrix(c(1,2,3,4), 2, 2, byrow = TRUE)) Sorry Alex -Original Message- From: Hanke, Alex [mailto:[EMAIL PROTECTED] Sent: April 1, 2004 9:25 AM To: 'Oleg Bartunov'; '[EMAIL PROTECTED]' Subject: RE: [R] multiple plots problem The command: layout(c

Re: [R] multiple plots problem

2004-04-01 Thread Duncan Murdoch
On Thu, 1 Apr 2004 17:48:11 +0400 (MSD), Oleg Bartunov [EMAIL PROTECTED] wrote : On Thu, 1 Apr 2004, Duncan Murdoch wrote: In Windows you can record all plots by using the record=TRUE option when you open the graphics display, or from the menu on the display window. You cycle back through