Search
Question: flowPeaks - plot.new() error due to too many graphs in one R Graphics window
0
gravatar for AJC
2.8 years ago by
AJC0
United States
AJC0 wrote:

Hello,

 

I'm currently using flowPeaks for my 9-color flow cytometry data. Because I want to look at all the possible dot diagrams with 9 fluorechromes, I get 9x8/2 = 36 graphs.

 

> par(mfrow=c(6,6))
> plot(fp,idx=c(1,2,3,4,5,6,7,8,9))
Error in plot.new() : figure margins too larg

 

I tried par(mfrow=c(5,5)). The graphs get printed without errors but my first 25 graphs are gone as the R graph window refreshes and shows only 26th to 36th graphs. Is there a way to break the margin limit? I want to print all graphs in one pdf eventually. Any suggestions would be greatly appreciated.

 

Thank you,

A.J. Choi

University of Maryland - College Park

USA

 

ADD COMMENTlink modified 2.8 years ago by James W. MacDonald45k • written 2.8 years ago by AJC0
0
gravatar for James W. MacDonald
2.8 years ago by
United States
James W. MacDonald45k wrote:

You can usually get around this by making either your plotting window (or preferably, your pdf document) large enough to fit all the plots.

> par(mfrow=c(6,6))
> for(i in 1:36) plot(1:10)
Error in plot.new() : figure margins too large

> x11(width = 10, height = 10)
> par(mfrow=c(6,6))
> for(i in 1:36) plot(1:10)
>

For pdf:

> pdf("tmp.pdf")
> par(mfrow=c(6,6))
> for(i in 1:36) plot(1:10)
Error in plot.new() : figure margins too large
> dev.off()
X11cairo
       2
> pdf("tmp.pdf", 10,10)
> for(i in 1:36) plot(1:10)
> dev.off()
X11cairo
       2

 

ADD COMMENTlink written 2.8 years ago by James W. MacDonald45k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 160 users visited in the last hour