Hi 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() [[alternative HTML version deleted]]
Richard.Cotton at hsl.gov.uk
2008-Jan-16 18:17 UTC
[R] Error in plot.new() : figure margins too large
> 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}}
Maybe Matching Threads
- Matrix Multiplication, Floating-Point, etc.
- eigen(symmetric=TRUE) for complex matrices
- Experience moving mailboxes from Dovecot 0.99.14 to Dovecot 1.07 => Improvement possible
- nlm, hessian, and derivatives in obj function?
- can't get names from vector in nlm calls