[R] how to overlay many plot windows in a sigle frame

Roger Bivand Roger.Bivand at nhh.no
Wed Nov 2 12:26:25 CET 2005


On Wed, 2 Nov 2005, Yogesh K. Tiwari wrote:

> Hello R Users,
> 
> I want to plot many windows in a single frame.

?par

opar <- par(mfrow=c(3,4))
for (i in 1:12) plot(runif(i*10))
par(opar)



> 
> For example, suppose I have to plot the
> vertical profile of the aircraft co2
> measurement in different months in a year,
> and I want to plot these different months in
> separate windows but the final 12 plots I
> want to keep in single frame. So how I can do
> this in R.
> 
> There would be any overlay command after
> ploting the first winodw so I can send the
> second plot window in the same frame, side by
> side with the old window.
> 
> How I can do this ?
> 
> Many thanks for help,
> 
> Regards,
> Yogesh
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-help mailing list