Re: [R] graphics and 'layout' question

From: James W. MacDonald <jmacdon_at_med.umich.edu>
Date: Fri 15 Sep 2006 - 13:45:24 GMT

Arne.Muller@sanofi-aventis.com wrote:
> Hello,
>
> I got stuck with a graphics question: I've 3 figures that I present
> on a single page (window) via 'layout'. The layout is
>
> layout(matrix(c(1,1,2,3), 2, 2, byrow=TRUE));
>
> so that the frst plot spans the both columns in row one. Now I'd like
> to magnify the fist figure so that it takes 20% more vertical space
> (i.e. more space for the y-axis). How would I do this in R?

 From ?layout

heights: a vector of values for the heights of rows on the device.

           Relative and absolute heights can be specified, see 'widths'
           above.

So something like
layout(matrix(c(1,1,2,3),2,2,byrow = TRUE), heights = c(0.6, 0.4))

should do the trick.

Best,

Jim

>
> thanks a lot for your help,
>
> Arne
>
> ______________________________________________
> 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 and provide
> commented, minimal, self-contained, reproducible code.

-- 
James W. MacDonald, M.S.
Biostatistician
Affymetrix and cDNA Microarray Core
University of Michigan Cancer Center
1500 E. Medical Center Drive
7410 CCGC
Ann Arbor MI 48109
734-647-5623


**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent or sensitive issues.

______________________________________________
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
and provide commented, minimal, self-contained, reproducible code.
Received on Fri Sep 15 23:59:23 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 15 Sep 2006 - 15:30:06 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.