[R] graphics and 'layout' question

James W. MacDonald jmacdon at med.umich.edu
Fri Sep 15 15:45:24 CEST 2006


Arne.Muller at 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 at 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.



More information about the R-help mailing list