flowPeaks - plot.new() error due to too many graphs in one R Graphics window
1
0
Entering edit mode
AJC ▴ 10
@ajc-6830
Last seen 9.2 years ago
United States

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 • 4.4k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 hour ago
United States

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 COMMENT

Login before adding your answer.

Traffic: 675 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6