Aurelien de Reynies
2003-Apr-30 15:03 UTC
[R] How to put 2 or more graphics in the same page ?
Hi, I have a naive question... I have produced about 60 graphics and want to put them in one postscipt file , possibly 4 graphics on each page. I can put all of them in the same file (that's ok), but I can't find the way to put 2 or more (precisely 4, in my case) graphics on the same page (each graphics is about 6 inches (width) X 4 inches (height)). Any help would be very much appreciated... Aur?lien
> I can't find the way to put > 2 or more(precisely 4, in my case) graphics on the same page (each > graphics is about 6 inches (width) X 4 inches (height)).I'm not sure this is about using R, but you can use `psutils' and in particular the `psnup'-command. To make a new PS-file `quater.ps', putting four pages from the file `semel.ps' on each page, type psnup -4 semel.ps quater.ps It is possible to rescale page sizes, change orientation etc. A nice tutorial is Chapter 21 from The Linux Cookbook. You can find it in the `Guides'-section on www.tldp.org Regards, Tobias
partha_bagchi@hgsi.com
2003-Apr-30 18:50 UTC
[R] How to put 2 or more graphics in the same page ?
To get more than one graph on a single page use the mfrow or mfcol arguments to par. For example,> par(mfrow= c(2, 2))will give you 4 graphs per page. See the ?layout for further fine tuning. Tobias Verbeke <tobias_verbeke@skynet.be> Sent by: r-help-bounces@stat.math.ethz.ch 04/30/2003 02:31 PM To: r-help@stat.math.ethz.ch cc: Subject: Re: [R] How to put 2 or more graphics in the same page ?> I can't find the way to put > 2 or more(precisely 4, in my case) graphics on the same page (each > graphics is about 6 inches (width) X 4 inches (height)).I'm not sure this is about using R, but you can use `psutils' and in particular the `psnup'-command. To make a new PS-file `quater.ps', putting four pages from the file `semel.ps' on each page, type psnup -4 semel.ps quater.ps It is possible to rescale page sizes, change orientation etc. A nice tutorial is Chapter 21 from The Linux Cookbook. You can find it in the `Guides'-section on www.tldp.org Regards, Tobias ______________________________________________ R-help@stat.math.ethz.ch mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. [[alternate HTML version deleted]]
Ko-Kang Kevin Wang
2003-Apr-30 18:54 UTC
[R] How to put 2 or more graphics in the same page ?
Take a look at ?par. More precisely, par(mfrow = c(2, 2)) may be what you want. On Wed, 30 Apr 2003, Aurelien de Reynies wrote:> Date: Wed, 30 Apr 2003 17:03:16 +0200 > From: Aurelien de Reynies <reynies at genoscope.cns.fr> > To: r-help at stat.math.ethz.ch > Subject: [R] How to put 2 or more graphics in the same page ? > > Hi, > > I have a naive question... > > I have produced about 60 graphics and want to put them in one postscipt > file , possibly 4 graphics on each page. I can put all of them in the > same file (that's ok), but I can't find the way to put 2 or more > (precisely 4, in my case) graphics on the same page (each graphics is > about 6 inches (width) X 4 inches (height)). > > Any help would be very much appreciated... > > Aur?lien > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >-- Cheers, Kevin ------------------------------------------------------------------------------ /* Time is the greatest teacher, unfortunately it kills its students */ -- Ko-Kang Kevin Wang Master of Science (MSc) Student SLC Tutor and Lab Demonstrator Department of Statistics University of Auckland New Zealand Homepage: http://www.stat.auckland.ac.nz/~kwan022 Ph: 373-7599 x88475 (City) x88480 (Tamaki)