[R] Rescaling columns in a multi-plot layout

Peter Ehlers ehlers at ucalgary.ca
Tue Jul 26 09:12:08 CEST 2011


On 2011-07-25 10:30, Manojit Roy wrote:
> Dear all,
>
> I am trying to create a 6-plot layout - 3 rows and 2 columns - so that
> only the top two plots have variable widths, all else with their default
> setting. Using
> "layout(matrix(c(1,2,3,4,5,6),3,2,byrow=T),widths=c(5,2))" rescales
> column #2 of all three rows, whereas I would like to rescale that of
> only row #1. Is there a simple way of doing this?

I think that you'll have to make 3 columns:

  layout(matrix(c(1,1,2,3,4,4,5,6,6), 3, 3, byrow = TRUE),
         widths = c(3.5, 1.5, 2))
  layout.show(6)

Peter Ehlers

>
> Thanks,
> Manojit
>
> ______________________________________________
> R-help at r-project.org 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.



More information about the R-help mailing list