Re: [R] Error in plot.new() : figure margins too large

From: <Richard.Cotton_at_hsl.gov.uk>
Date: Wed, 16 Jan 2008 18:17:23 +0000


> I am getting error :
> Error in plot.new() : figure margins too large
> Can you please help
> -----code is



> temp <- seq(5500000/2, 22000000, 5500000/2)
> sV2 <- c(1, 1+temp[-length(temp)])
> eV2 <- temp
> i=1
> bitmap(paste("c:/vidhu/poster/poster_56half_2", LETTERS[i], ".png",
sep =
> ""), "png256", width = 55.5, height = 8.875, res = 300)
> par(mfrow = c(28,1), mar = c(0.5,3,0.5,0.5), mgp = c(2,0.65,0))
> for(i in 1:length(sV2)) {
>
> cat("i = ", i, "\n", sep = "")
> if (i%%2)
> {
> pSL(sV2[i], eV2[i], 50000)}
>
> }
> dev.off()
> windows()

The error indicates that when you have drawn the margins, there is no room for the plot. I suspect that this is because your bitmap is very wide, but you are using a column for the multiframe. Try par(mfrow=c(1,28)) instead.

Regards,
Richie.

Mathematical Sciences Unit
HSL



ATTENTION: This message contains privileged and confidential inform...{{dropped:20}}

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 16 Jan 2008 - 18:26:38 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 16 Jan 2008 - 18:30:06 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