Question: flowPeaks - plot.new() error due to too many graphs in one R Graphics window
0
4.5 years ago by
AJC10
United States
AJC10 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

flowpeaks plot • 3.4k views
modified 4.5 years ago by James W. MacDonald50k • written 4.5 years ago by AJC10
Answer: flowPeaks - plot.new() error due to too many graphs in one R Graphics window
0
4.5 years ago by
United States
James W. MacDonald50k 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