Re: [R] plot region too large

From: Kiermeier, Andreas (PIRSA - SARDI) <Kiermeier.Andreas_at_saugov.sa.gov.au>
Date: Fri 15 Sep 2006 - 04:35:03 GMT


The figure margins come from what is set in par("mar"), eg

> layout(matrix(c(1:10),5,2),heights=c(1,rep(2,4)))
> par("mar")
[1] 5.1 4.1 4.1 2.1
>

There is not enough space left to plot anything with those margins. You will need to make them smaller first, e.g.

> par(mar=c(1,1,1,1,))
> plot(1,1)

In which case things work.

Cheers,

Andreas



Dr Andreas Kiermeier
Senior Statistician
SARDI FOOD SAFETY PROGRAM 33 Flemington Street
Glenside SA 5065
Ph:	+61 8 8207 7884
Fax:	+61 8 8207 7854
Mob:	0423 028 565

Email: Kiermeier.Andreas@saugov.sa.gov.au Web: http://www.sardi.sa.gov.au/



If you would like to correspond with me in a secure way, using public key encryption, please contact me directly for details of my GPG public key or visit the SARDI website, where you can download my public key from my personal staff page.

The information in this e-mail and attachments (if any) may be confidential and/or legally privileged. If you are not the intended recipient, any disclosure, copying, distribution or action taken is prohibited. SARDI, The South Australian Research and Development Institute, is the research division of Primary Industries and Resources (SA)

-----Original Message-----
From: r-help-bounces@stat.math.ethz.ch
[mailto:r-help-bounces@stat.math.ethz.ch] On Behalf Of Kamila Naxerova Sent: Friday, 15 September 2006 13:26
To: r-help@stat.math.ethz.ch
Subject: [R] plot region too large

Hi!

I don't understand this:

layout(matrix(c(1:10),5,2),heights=c(1,rep(2,4))) plot(1,1)
error in plot.new() : plot region too large

Why??????

Thanks!
Kamila



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.

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 14:40:24 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 - 07:30:04 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.