Re: [R] how to save the picture with par(mfrow = c(1, 3), pty='s') setti ngs?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri 17 Feb 2006 - 09:43:27 EST

"Glazko, Galina" <Galina_Glazko@URMC.Rochester.edu> writes:

> Dear list,
>
>
>
> I am trying to place 3 density functions in one Figure, 1 row by 3 columns:
>
> -------------------------------------------------------
>
> op <- par(mfrow = c(1, 3),pty='s')
>
> pdf(file="Fig_den.pdf")
....
> -------------------------------------------------------
>
> Somehow in file Fig_den.pdf these figures are on the separate pages.
>
> However, I get exactly what I need in the console window.
>
> Could someone please explain me what I am doing wrong when saving Figure in
> pdf?

You have par() before pdf(). Try it the other way around.

-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Feb 17 09:48:08 2006

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 14:08:37 EST