[R] Error in plot.new() : figure margins too large
Richard.Cotton at hsl.gov.uk
Richard.Cotton at hsl.gov.uk
Wed Jan 16 19:17:23 CET 2008
> 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}}
More information about the R-help
mailing list