Gregory (Greg) L. Snow Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.snow at imail.org
(801) 408-8111
> -----Original Message-----
> From: r-help-bounces at r-project.org
> [mailto:r-help-bounces at r-project.org] On Behalf Of Peter H Singleton
> Sent: Wednesday, March 12, 2008 1:51 PM
> To: r-help at r-project.org
> Subject: [R] Problem with specifiying column widths in layout
>
>
> 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.
>