[BioC] help with large Rgraphviz output

Jake jjmichael at comcast.net
Tue Jun 6 23:37:03 CEST 2006


On Tue, 2006-06-06 at 14:00 -0700, Seth Falcon wrote:
> "Kimpel, Mark William" <mkimpel at iupui.edu> writes:
> 
> > Seth,
> >
> > I am a novice at manipulating options in R and working with output
> > devices.
> >
> > Assuming I want to set my postscript paper size as Width= 15" and
> > Height= 15", what code would set the option for this?
> >
> > Also, how to I get the plot method for Rgraphviz to output to postscript
> > instead of screen?
> 
> Warning: untested code ahead
> 
> I think it would look something like this:
> 
>   ## a graphNEL instance you want to plot
>   g 
>   
>   ## setup the postscript device.  All plot commands will be 
>   ## sent to this device until you call dev.off().  
>   postscript(file="bigGraphPlot.ps", paper="special",
>              width=15, height=15)
>   ## do the plot, you should not see anything on screen
>   plot(g)
>   ## close the graphics device
>   dev.off()
> 
> 
> You might also want to try the pdf() device.

I've personally had success with:

pdf("foo.pdf", width=24, height=36) ### width/height whatever you want
plot(g)
dev.off()

for large networks of genes (also a graphNEL object).  Even if you don't
print it out, the layout is much easier to read when opened on-screen.

--Jake



More information about the Bioconductor mailing list