[R] Problem with specifiying column widths in layout

From: Peter H Singleton <psingleton_at_fs.fed.us>
Date: Wed, 12 Mar 2008 12:51:13 -0700

I am trying to generate a graphic with a matrix of 9 line graphs (3 rows, 3 columns), all with the same y-axis range, and only showing the y-axis labels and title at the left edge of each row of the matrix. I have been trying to use the widths argument in layout to specify a larger column width in the left column so that I have room for the y-axis labels and title, but I get the following error:

> layout(matrix(1:9, ncol=3, widths=c(2,1,1), byrow=TRUE))

Error in matrix(1:9, ncol = 3, widths = c(2, 1, 1), byrow = TRUE) :   unused argument(s) (widths = c(2, 1, 1))

I think I'm correctly following the example on p80 in Murrell, and I've seen other people using this syntax in listserv posts, but I'm obviously doing something wrong. Any suggestions?

<<->><<->><<->><<->><<->><<->><<->>
Peter Singleton
USFS Pacific Northwest Research Station



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. Received on Wed 12 Mar 2008 - 19:56:30 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 12 Mar 2008 - 21:30:21 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.

list of date sections of archive